aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-05 00:18:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-05 00:18:37 +1300
commit871318a0e83f07e6d44be3bc36a472ff226d215f (patch)
tree94e10948f08368d41433e655ba7915b4fc6e54dc
parentad7be7b50aebb03999fa3be38fc6fdde2899f7ba (diff)
downloaddotfiles-871318a0e83f07e6d44be3bc36a472ff226d215f.tar.gz
Limit search highlighting hooks to Vim >= 7.1
'InsertEnter' and 'InsertLeave' are not autocmd events in Vim 6.1.
-rw-r--r--vim/config/search.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/config/search.vim b/vim/config/search.vim
index a3aba989..ff243116 100644
--- a/vim/config/search.vim
+++ b/vim/config/search.vim
@@ -22,7 +22,7 @@ if has('extra_search')
" Clear search highlighting as soon as I enter insert mode, and restore it
" once I leave it
- if has('autocmd')
+ if has('autocmd') && v:version >= 701
augroup dotfiles_highlight
autocmd!
autocmd InsertEnter