We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f62f12 commit db3e8caCopy full SHA for db3e8ca
.vimrc
@@ -299,8 +299,16 @@
299
nmap <leader>f8 :set foldlevel=8<CR>
300
nmap <leader>f9 :set foldlevel=9<CR>
301
302
- " Toggle search highlighting
303
- nmap <silent> <leader>/ :set invhlsearch<CR>
+ " Most prefer to toggle search highlighting rather than clear the current
+ " search results. To clear search highlighting rather than toggle it on
304
+ " and off, add the following to your .vimrc.before.local file:
305
+ " let g:spf13_clear_search_highlight = 1
306
+ if exists('g:spf13_clear_search_highlight')
307
+ nmap <silent> <leader>/ :nohlsearch<CR>
308
+ else
309
+ nmap <silent> <leader>/ :set invhlsearch<CR>
310
+ endif
311
+
312
313
" Find merge conflict markers
314
map <leader>fc /\v^[<\|=>]{7}( .*\|$)<CR>
0 commit comments