From 069207fe907069327ebac7de2b9d0ad750d0531a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 3 Nov 2017 19:33:57 +1300 Subject: 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. --- vim/config/search.vim | 4 ++-- 1 file 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 -- cgit v1.2.3