aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-02-16 22:58:17 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-02-16 22:59:22 +1300
commitb9dd7a5a29cce071ca1bfdd14166774e72b127a3 (patch)
tree9bd0b682414f1692a11fefa81cb762c3673b3b87
parentAdd Makefile tweak for Neovim installation (diff)
downloaddotfiles-b9dd7a5a29cce071ca1bfdd14166774e72b127a3.tar.gz
dotfiles-b9dd7a5a29cce071ca1bfdd14166774e72b127a3.zip
Check for 'esckeys' option for NeoVim
NeoVim v0.2.3-708-g77286915a no longer includes this option, and raises an error if I try to set it.
-rw-r--r--vim/config/terminal.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/config/terminal.vim b/vim/config/terminal.vim
index 202705a7..04ec5653 100644
--- a/vim/config/terminal.vim
+++ b/vim/config/terminal.vim
@@ -7,7 +7,9 @@ set pastetoggle=<F10>
" Don't bother about checking whether Escape is being used as a means to enter
" a Meta-key combination, just register Escape immediately
-set noesckeys
+if exists('+esckeys')
+ set noesckeys
+endif
" Don't bother drawing the screen while executing macros or other automated or
" scripted processes, just draw the screen as it is when the operation