nvim: init.vim: Add key bindings for frequently used cmds
This commit is contained in:
parent
e773cb8ce9
commit
d7f085ae49
1 changed files with 12 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue