mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-10 03:53:48 -05:00
Map <C-L> to clear search highlighting
<C-L> normally redraws the screen, so turning off search highlighting is a natural addition. But some people like it for <C-W>l, so don't override it if it's already been mapped. Note that hlsearch is currently left off by default.
This commit is contained in:
@@ -23,6 +23,9 @@ set ttimeoutlen=50
|
||||
|
||||
set incsearch
|
||||
set smartcase
|
||||
if maparg('<C-L>', 'n') ==# ''
|
||||
nnoremap <silent> <C-L> :nohls<CR><C-L>
|
||||
endif
|
||||
|
||||
set laststatus=2
|
||||
set ruler
|
||||
|
||||
Reference in New Issue
Block a user