diff --git a/nvim/.config/nvim/after/plugin/fugitive.vim b/nvim/.config/nvim/after/plugin/fugitive.vim index 95758d2..54f86b3 100644 --- a/nvim/.config/nvim/after/plugin/fugitive.vim +++ b/nvim/.config/nvim/after/plugin/fugitive.vim @@ -1,18 +1,21 @@ +nnoremap ga :Git fetch --all nnoremap gl :0Gclog! nnoremap gL :Gclog! nnoremap gd :Ghdiffsplit! nnoremap gD :Gvdiffsplit! nnoremap gs :Git +nnoremap gS :Git nnoremap gc :Git commit -v -q --signoff -nnoremap gt :Git commit -v -q --signoff %:p +nnoremap gC :Git commit -v -q --signoff %:p nnoremap gp :Git push -nnoremap gu :Git push -u -nnoremap gr :Git remote -v -nnoremap gb :Git branch -a -nnoremap gB :Git branch -nnoremap go :Git checkout +nnoremap gP :Git push -u nnoremap g- :Git stash:e nnoremap g+ :Git stash pop:e nnoremap gw :Gwrite -nnoremap gG :Git nnoremap gM :0,3Git blame +nnoremap gr :Git rebase origin/master +nnoremap gR :Git rebase upstream/master + +" For 3 way merge +nnoremap dl :diffget //2 +nnoremap dr :diffget //3 diff --git a/nvim/.config/nvim/after/plugin/fzf_checkout.vim b/nvim/.config/nvim/after/plugin/fzf_checkout.vim new file mode 100644 index 0000000..e46e3cf --- /dev/null +++ b/nvim/.config/nvim/after/plugin/fzf_checkout.vim @@ -0,0 +1,9 @@ +nnoremap gbo :GBranches checkout +nnoremap gbt :GBranches track +nnoremap gbc :GBranches create +nnoremap gbd :GBranches delete +nnoremap gbm :GBranches merge + +nnoremap gto :GTags checkout +nnoremap gtc :GTags create +nnoremap gtd :GTags delete