summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Zangl <laktak@cdak.net>2021-04-14 12:09:11 +0200
committerGitHub <noreply@github.com>2021-04-14 12:09:11 +0200
commit5de7022bcb4c7a155952dbeb666f912db3bde2af (patch)
treeaad2ce604910901ef91eb201b45fe0c95c84d3d3
parent67327ef831d41e36155cad58b1599f0226a98d51 (diff)
downloadvim-polyglot-5de7022bcb4c7a155952dbeb666f912db3bde2af.tar.gz
vim-polyglot-5de7022bcb4c7a155952dbeb666f912db3bde2af.zip
Add reindent to readme #662 (#675)
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9df90b40..86ac7b58 100644
--- a/README.md
+++ b/README.md
@@ -240,6 +240,17 @@ Vim Polyglot tries to automatically detect indentation settings (just like vim-s
let g:polyglot_disabled = ['autoindent']
```
+## Reindent
+
+If you want to disable reindening of the current line in insert mode (see vim 'indentkeys') you can turn it off with:
+
+```vim
+autocmd BufEnter * set indentexpr=
+```
+
+This will not affect smart autoindenting when starting a new line.
+
+
## Default settings
Vim Polyglot includes vim-sensible plugin, which is usually necessary for editing any language. This can be disabled with: