Added <leader>h to toggle search hilight
This commit is contained in:
@@ -37,6 +37,9 @@ set cursorline
|
||||
"set highlight cursorcolumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
|
||||
nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
|
||||
|
||||
"toggle search hilight with <leader>h
|
||||
nnoremap <silent><expr> <Leader>h (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
|
||||
|
||||
"highlight matching brace when closing brace, flash for 2 tenths
|
||||
set showmatch
|
||||
set matchtime=2
|
||||
|
||||
Reference in New Issue
Block a user