nvim: keymappings: Add key mapping for invoking vimgrep
This commit is contained in:
parent
30efe75dc7
commit
e54dd071f6
1 changed files with 4 additions and 1 deletions
|
@ -19,8 +19,11 @@ remap('n', '<Leader>P', '<ESC>"*p', opts)
|
||||||
-- Search and Replace
|
-- Search and Replace
|
||||||
remap('n', 'c.' , ':%s//g<Left><Left>' , opts)
|
remap('n', 'c.' , ':%s//g<Left><Left>' , opts)
|
||||||
remap('n', '<Leader>c.', ':%s/\\<<C-r><C-w>\\>//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)
|
remap('n', 'S', '/\\<\\><Left><Left>', opts)
|
||||||
|
-- Search
|
||||||
|
remap('n', '<Leader>s' , ':silent grep!<SPACE>' , opts)
|
||||||
|
remap('n', '<LocalLeader>s', ':silent lgrep!<SPACE>', opts)
|
||||||
-- Quit
|
-- Quit
|
||||||
remap('n', '<Leader>x', '<Esc>:x<CR>' , opts)
|
remap('n', '<Leader>x', '<Esc>:x<CR>' , opts)
|
||||||
remap('n', '<Leader>q', '<Esc>:q<CR>' , opts)
|
remap('n', '<Leader>q', '<Esc>:q<CR>' , opts)
|
||||||
|
|
Loading…
Reference in a new issue