aboutsummaryrefslogtreecommitdiff
path: root/vim/config/search.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-13 00:02:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-13 00:03:19 +1300
commit54caf02bd794e45ed5b4b181f1e314e924809b1e (patch)
treee3c97953e4d53c5f412d1a2a0b16829b176303e1 /vim/config/search.vim
parentSeparate g:loaded/&cp tests from feat tests (diff)
downloaddotfiles-54caf02bd794e45ed5b4b181f1e314e924809b1e.tar.gz
dotfiles-54caf02bd794e45ed5b4b181f1e314e924809b1e.zip
Move 'hlsearch' insert-mode suspension into plugin
It's easily repackaged and it makes the configuration that much shorter, so I may as well. This version also correctly handles 'hlsearch' not being on in the first place.
Diffstat (limited to 'vim/config/search.vim')
-rw-r--r--vim/config/search.vim14
1 files changed, 0 insertions, 14 deletions
diff --git a/vim/config/search.vim b/vim/config/search.vim
index 967146d4..fc861801 100644
--- a/vim/config/search.vim
+++ b/vim/config/search.vim
@@ -20,18 +20,4 @@ if has('extra_search')
\ <C-L>
\ :<C-U>nohlsearch<CR><C-L>
- " Clear search highlighting as soon as I enter insert mode, and restore it
- " once I leave it
- if has('autocmd') && v:version >= 701
- augroup dotfiles_highlight
- autocmd!
- autocmd InsertEnter
- \ *
- \ set nohlsearch
- autocmd InsertLeave
- \ *
- \ set hlsearch
- augroup END
- endif
-
endif