nvim: keymappings: Add a mapping for finding exact match

This commit is contained in:
Sanchayan Maity 2022-01-03 17:36:50 +05:30
parent 95a247891e
commit 25de9376a9
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ remap('n', '<Leader>P', '<ESC>"*p', opts)
-- Search and Replace
remap('n', 'c.' , ':%s//g<Left><Left>' , opts)
remap('n', '<Leader>c.', ':%s/\\<<C-r><C-w>\\>//g<Left><Left>', opts)
-- Exact Search
remap('n', 'S', '/\\<\\><Left><Left>', opts)
-- Quit
remap('n', '<Leader>x', '<Esc>:x<CR>' , opts)
remap('n', '<Leader>q', '<Esc>:q<CR>' , opts)