Added <leader>h to toggle search hilight

This commit is contained in:
jon
2018-11-04 15:10:56 -06:00
parent dfeec26128
commit ca4457ac33
8 changed files with 10 additions and 7 deletions

View File

@@ -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