mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 07:27:11 +00:00
Option to clear instead of toggle search highlighting
This commit is contained in:
parent
a8c04ef701
commit
476e2758e1
12
.vimrc
12
.vimrc
@ -317,8 +317,16 @@
|
||||
nmap <leader>f8 :set foldlevel=8<CR>
|
||||
nmap <leader>f9 :set foldlevel=9<CR>
|
||||
|
||||
" Toggle search highlighting
|
||||
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
|
||||
" and off, add the following to your .vimrc.before.local file:
|
||||
" let g:spf13_clear_search_highlight = 1
|
||||
if exists('g:spf13_clear_search_highlight')
|
||||
nmap <silent> <leader>/ :nohlsearch<CR>
|
||||
else
|
||||
nmap <silent> <leader>/ :set invhlsearch<CR>
|
||||
endif
|
||||
|
||||
|
||||
" Find merge conflict markers
|
||||
map <leader>fc /\v^[<\|=>]{7}( .*\|$)<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user