better hlsearch toggle

Fri, 28 Jan 2022 14:42:14 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 28 Jan 2022 14:42:14 -0600
changeset 975
8aea1e8c4aa6
parent 974
be3938b95ee6
child 976
1092ac0393ec

better hlsearch toggle

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -65,7 +65,7 @@ let s:filename   = expand('<sfile>')
 nnoremap <silent> <F2>   :20Lexplore<CR>
 nnoremap <silent> <F3>   n
 nnoremap <silent> <S-F3> N
-noremap  <silent> <F4>   :set hls!<CR>
+noremap  <silent> <F4>   :let v:hlsearch = !v:hlsearch<CR>
 nnoremap <silent> <F5>   :UndotreeToggle<CR>
 nnoremap <silent> <F8>   :TagbarToggle<CR>
 

mercurial