vim: better keymap to clear search highlight
This commit is contained in:
parent
cb5a4cefbf
commit
763e92e588
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ nmap('<leader>sp', '<cmd>set spell! | set spell?<CR>', { silent = true })
|
||||||
nmap('<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]])
|
nmap('<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]])
|
||||||
|
|
||||||
-- disable highlight until next search
|
-- disable highlight until next search
|
||||||
nmap('<leader>h', '<cmd>nohlsearch<cr>')
|
nmap('<esc>', '<cmd>nohlsearch<cr><esc>')
|
||||||
|
imap('<esc>', '<cmd>nohlsearch<cr><esc>')
|
||||||
|
|
||||||
-- more convenient way of entering normal mode from terminal mode
|
-- more convenient way of entering normal mode from terminal mode
|
||||||
tmap([[<c-\><c-\>]], [[<c-\><c-n>]])
|
tmap([[<c-\><c-\>]], [[<c-\><c-n>]])
|
||||||
|
|
Loading…
Add table
Reference in a new issue