From 19d00c7ac51fca7f096a200e3c0123b545502f86 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 27 May 2020 19:48:35 +0530 Subject: [PATCH] nvim: Add vim-fugitive for git back Signed-off-by: Sanchayan Maity --- nvim/.config/nvim/after/plugin/fugitive.vim | 17 +++++++++++++++++ nvim/.config/nvim/init.vim | 1 + 2 files changed, 18 insertions(+) create mode 100644 nvim/.config/nvim/after/plugin/fugitive.vim diff --git a/nvim/.config/nvim/after/plugin/fugitive.vim b/nvim/.config/nvim/after/plugin/fugitive.vim new file mode 100644 index 0000000..0ec4001 --- /dev/null +++ b/nvim/.config/nvim/after/plugin/fugitive.vim @@ -0,0 +1,17 @@ +nnoremap gl :0Gclog! +nnoremap gL :Gclog! +nnoremap gd :Ghdiffsplit! +nnoremap gD :Gvdiffsplit! +nnoremap gs :Git +nnoremap gc :Git commit -v -q --signoff +nnoremap gt :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 g- :Git stash:e +nnoremap g+ :Git stash pop:e +nnoremap gw :Gwrite +nnoremap gG :Git diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 433351c..ba16daf 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -17,6 +17,7 @@ Plug 'haorenW1025/completion-nvim' Plug 'tmux-plugins/vim-tmux-focus-events' Plug 'wellle/tmux-complete.vim' " Git support +Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' Plug 'rhysd/git-messenger.vim', { 'on': 'GitMessenger' } Plug 'rhysd/conflict-marker.vim'