diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 00:18:37 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 00:18:37 +1300 |
commit | 871318a0e83f07e6d44be3bc36a472ff226d215f (patch) | |
tree | 94e10948f08368d41433e655ba7915b4fc6e54dc /vim/config | |
parent | Add explanatory note for choosing imperfect remap (diff) | |
download | dotfiles-871318a0e83f07e6d44be3bc36a472ff226d215f.tar.gz dotfiles-871318a0e83f07e6d44be3bc36a472ff226d215f.zip |
Limit search highlighting hooks to Vim >= 7.1
'InsertEnter' and 'InsertLeave' are not autocmd events in Vim 6.1.
Diffstat (limited to 'vim/config')
-rw-r--r-- | vim/config/search.vim | 2 |
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 |