nvim: init.vim: Update nvim config
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
e94f771db3
commit
f9151f8b10
1 changed files with 8 additions and 8 deletions
|
@ -137,13 +137,6 @@ if maparg('<C-L>', 'n') ==# ''
|
||||||
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Save
|
|
||||||
nnoremap <Leader>w <Esc>:w<CR>
|
|
||||||
" Search and Replace
|
|
||||||
nmap <Leader>s :%s//g<Left><Left>
|
|
||||||
" Quit
|
|
||||||
nnoremap <Leader>q <Esc>:q<CR>
|
|
||||||
|
|
||||||
"nnoremap ; : " Use ; for commands.
|
"nnoremap ; : " Use ; for commands.
|
||||||
"nnoremap Q @q " Use Q to execute default register.
|
"nnoremap Q @q " Use Q to execute default register.
|
||||||
|
|
||||||
|
@ -154,7 +147,14 @@ nnoremap <Leader>f :Files<CR>
|
||||||
nnoremap <Leader>gf :GFiles<CR>
|
nnoremap <Leader>gf :GFiles<CR>
|
||||||
" Use ripgrep to search for content in files
|
" Use ripgrep to search for content in files
|
||||||
nnoremap <Leader>/ :Rg<CR>
|
nnoremap <Leader>/ :Rg<CR>
|
||||||
|
" Save
|
||||||
|
nnoremap <Leader>w <Esc>:w<CR>
|
||||||
|
" Search and Replace
|
||||||
|
nmap <Leader>s :%s//g<Left><Left>
|
||||||
|
" Quit
|
||||||
|
nnoremap <Leader>q <Esc>:q<CR>
|
||||||
|
" Search for the word under cursor
|
||||||
|
noremap <Leader>d :exe ':Rg ' . expand('<cword>')<CR>
|
||||||
" For git messenger
|
" For git messenger
|
||||||
nnoremap <Leader>gm :GitMessenger<CR>
|
nnoremap <Leader>gm :GitMessenger<CR>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue