nvim: keymappings: Update bindings for search and replace

Do this to avoid slowing sneak and ferret a little bit due to 's'
conflict.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-07-13 11:19:38 +05:30
parent 9fe8808e7e
commit 540a83df81

View file

@ -14,8 +14,8 @@ nnoremap <LocalLeader>B :LMake<CR>
" Save
nnoremap <Leader>w <Esc>:w<CR>
" Search and Replace
nnoremap sr :%s//g<Left><Left>
nnoremap <Leader>sr :%s/\<<C-r><C-w>\>//g<Left><Left>
nnoremap c. :%s//g<Left><Left>
nnoremap <Leader>c. :%s/\<<C-r><C-w>\>//g<Left><Left>
" Quit
nnoremap <Leader>x <Esc>:x<CR>
nnoremap <Leader>q <Esc>:q<CR>