vim:keys: Clear highlights on normal-mode Esc
Clear highlights from visual selection or word highlighting together with the highlight of the search results.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
" vim: set foldmethod=marker:
|
" vim: set foldmethod=marker:
|
||||||
" Keybindings """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
" Keybindings """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Stop highlighting search result when pressing Return
|
" Clear all kinds of highlights when pressing Escape in normal mode
|
||||||
nnoremap <silent> <Esc> :nohlsearch<CR><Esc>
|
nnoremap <silent> <Esc> :nohlsearch <bar> call ClearHighlights()<CR><Esc>
|
||||||
|
|
||||||
" Indentation jump
|
" Indentation jump
|
||||||
" https://vim.fandom.com/wiki/Move_to_next/previous_line_with_same_indentation
|
" https://vim.fandom.com/wiki/Move_to_next/previous_line_with_same_indentation
|
||||||
|
|||||||
Reference in New Issue
Block a user