aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-21 11:10:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-21 11:10:58 +1200
commit2e04c32a1fb1aac35960c19a610711a3bcd39769 (patch)
tree474828ef345661d08d66acfdfce3b902825dfd1e /vim/vimrc
parentUse new 'display' setting 'truncate' if available (diff)
downloaddotfiles-2e04c32a1fb1aac35960c19a610711a3bcd39769.tar.gz
dotfiles-2e04c32a1fb1aac35960c19a610711a3bcd39769.zip
Run :nohlsearch on re-sourcing .vimrc
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 971a3667..100e1f16 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -129,7 +129,8 @@ endif
" Highlight settings for search, if available
if has('extra_search')
- set hlsearch " Highlight completed searches
+ set hlsearch " Highlight completed searches...
+ nohlsearch " ...but clear it on startup or after re-sourcing
set incsearch " Show matches as I type
endif