1
0
Fork 0

nvim: add keymap to clear highlighted search

This commit is contained in:
Pratham Patel 2024-04-17 05:11:09 +05:30
parent 865aca8002
commit 42de7d9c83
Signed by: thefossguy
SSH Key Fingerprint: SHA256:HwRBy9H1FYXWcv/Qi1WY3kmcVtGz2ydZuPJgD4pkusY
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
-- clear the highlighted search on <Esc> in normal mode
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- jump to start and end of line using the home row keys
vim.keymap.set('n', 'H', '^')
vim.keymap.set('n', 'L', '$')