From 376598a9a5bdbe156a5542e976ca2db1895d35f4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 14 Jul 2019 08:02:39 +0200 Subject: [PATCH] [ADD][VIM] Git file log mapping gl will open a new tab containing the history of the current buffer in a location list as a series of git object. --- vim/.vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index e3c4b8b..784c858 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -255,6 +255,8 @@ nnoremap ga :Git add %:p nnoremap gs :Gstatus " Open diff view of current buffer: the up/left window is the current index nnoremap gd :Gdiffsplit! +" Open current file log in new tab, populate its location list with history +nnoremap gl :spT:Gllog --follow -- %:p " Use git-mv and rename the buffer, backspace and add '!' to use the '-f' flag nnoremap gm :Gmove " Open a buffer to the left with blame information