From 3ba1673068ae30becc901ea699c2fa0871406079 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 4 Jun 2021 12:58:45 +0530 Subject: [PATCH] nvim: after/plugin: fugitive: Update gF and gE mapping Often it is convenient to merge remote branch origin/foo into local branch foo, without having to checkout foo first. Use gF mapping for the same. One may edit alternate versions of the file in different branches using :Gedit :/path/to/file. Use gE mapping for the same. --- nvim/.config/nvim/after/plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/after/plugin/fugitive.vim b/nvim/.config/nvim/after/plugin/fugitive.vim index 66b91d2..047ac2f 100644 --- a/nvim/.config/nvim/after/plugin/fugitive.vim +++ b/nvim/.config/nvim/after/plugin/fugitive.vim @@ -8,9 +8,9 @@ nnoremap gC :Git checkout nnoremap gd :Ghdiffsplit! nnoremap gD :Gvdiffsplit! nnoremap ge :sp:Gedit HEAD~:% -nnoremap gE :sp:Gedit +nnoremap gE :sp:Gedit :%:p nnoremap gf :Git fetch --all -nnoremap gF :Git pull +nnoremap gF :Git fetch origin nnoremap gl :Git log --stat % nnoremap gL :Git log --stat -n 100 xnoremap gl :call git#git_log_range()