mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-10 12:03: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 incsearch
|
||||||
set smartcase
|
set smartcase
|
||||||
|
if maparg('<C-L>', 'n') ==# ''
|
||||||
|
nnoremap <silent> <C-L> :nohls<CR><C-L>
|
||||||
|
endif
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set ruler
|
set ruler
|
||||||
|
|||||||
Reference in New Issue
Block a user