aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-03 19:33:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-03 19:33:57 +1300
commit069207fe907069327ebac7de2b9d0ad750d0531a (patch)
treee765c0f813c1e321e873e2209c5c3aac98269093
parent02acbc5090474a254612bf29d1e86aa9882460e1 (diff)
downloaddotfiles-069207fe907069327ebac7de2b9d0ad750d0531a.tar.gz
dotfiles-069207fe907069327ebac7de2b9d0ad750d0531a.zip
Don't show search option state on mode changes
Commit 92f2c78 added these suffixes to the option settings to show the value of the option after it had been set, but this isn't actually appropriate for the autocmd here; it means the value of 'hlsearch' is echoed every time insert mode is entered or left.
-rw-r--r--vim/config/search.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/config/search.vim b/vim/config/search.vim
index 1d1039e2..66b81ab0 100644
--- a/vim/config/search.vim
+++ b/vim/config/search.vim
@@ -19,8 +19,8 @@ if has('extra_search')
if has('autocmd')
augroup dotfiles_highlight
autocmd!
- silent! autocmd InsertEnter * setlocal nohlsearch nohlsearch?
- silent! autocmd InsertLeave * setlocal hlsearch hlsearch?
+ silent! autocmd InsertEnter * setlocal nohlsearch
+ silent! autocmd InsertLeave * setlocal hlsearch
augroup END
endif
endif