aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-27 12:52:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-27 12:52:18 +1200
commit4b324646269215b47b61f4e6f1b9fcee3edd72bc (patch)
treeeb6b8a7af7fd75f37817499d7470746dba0d7a36 /vim/vimrc
parentMerge branch 'release/v1.6.0' into develop (diff)
downloaddotfiles-4b324646269215b47b61f4e6f1b9fcee3edd72bc.tar.gz
dotfiles-4b324646269215b47b61f4e6f1b9fcee3edd72bc.zip
Restore 'esckeys' option existence check
Now I remember: Neovim doesn't have it.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 72106b0a..7cd795a5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -64,8 +64,10 @@ else
set display=lastline " Just let it run off the screen if not
endif
-" Don't wait for a key after Escape in insert mode
-set noesckeys
+" Don't wait for a key after Escape in insert mode (not in Neovim)
+if exists('+esckeys')
+ set noesckeys
+endif
" Delete comment leaders when joining lines, if supported
if v:version > 703 || v:version == 703 && has('patch541')