nvim: keymappings: Add key mapping for invoking vimgrep

This commit is contained in:
Sanchayan Maity 2024-07-13 20:02:43 +05:30
parent 30efe75dc7
commit e54dd071f6
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -19,8 +19,11 @@ 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
-- Exact Search in buffer
remap('n', 'S', '/\\<\\><Left><Left>', opts)
-- Search
remap('n', '<Leader>s' , ':silent grep!<SPACE>' , opts)
remap('n', '<LocalLeader>s', ':silent lgrep!<SPACE>', opts)
-- Quit
remap('n', '<Leader>x', '<Esc>:x<CR>' , opts)
remap('n', '<Leader>q', '<Esc>:q<CR>' , opts)