From d7f085ae4942ca0b5931864663ca84c4a3664f76 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 30 Oct 2019 13:26:55 +0530 Subject: [PATCH] nvim: init.vim: Add key bindings for frequently used cmds --- nvim/init.vim | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index ca132aa..9d921dc 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -158,8 +158,19 @@ nmap s :%s//g nnoremap q :q " Search for the word under cursor noremap d :exe ':Rg ' . expand('') -" For git messenger +" Open terminal +nnoremap te :vsp :terminal +" Reload opened vim config file +nnoremap vc :so % +" For git nnoremap gm :GitMessenger +nnoremap gl :Glog +nnoremap gd :Gdiffsplit +nnoremap gs :Gstatus +nnoremap gc :Gcommit --signoff +nnoremap gp :Git! push +nnoremap gu :Git! push -u +nnoremap gr :Git! remote -v " Key Bindings to help with terminal mode :tnoremap