nvim: init.vim: Add key bindings for frequently used cmds

This commit is contained in:
Sanchayan Maity 2019-10-30 13:26:55 +05:30 committed by Sanchayan Maity
parent e773cb8ce9
commit d7f085ae49

View file

@ -158,8 +158,19 @@ nmap <Leader>s :%s//g<Left><Left>
nnoremap <Leader>q <Esc>:q<CR>
" Search for the word under cursor
noremap <Leader>d :exe ':Rg ' . expand('<cword>')<CR>
" For git messenger
" Open terminal
nnoremap <Leader>te :vsp<CR> :terminal<CR>
" Reload opened vim config file
nnoremap <Leader>vc :so %<CR>
" For git
nnoremap <Leader>gm :GitMessenger<CR>
nnoremap <Leader>gl :Glog<CR>
nnoremap <Leader>gd :Gdiffsplit<CR>
nnoremap <Leader>gs :Gstatus<CR>
nnoremap <Leader>gc :Gcommit --signoff<CR>
nnoremap <Leader>gp :Git! push<CR>
nnoremap <Leader>gu :Git! push -u
nnoremap <Leader>gr :Git! remote -v<CR>
" Key Bindings to help with terminal mode
:tnoremap <Esc> <C-\><C-n>