From f85d4f551724ed731d692b4d65d91fa49e8c4463 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 12 Aug 2015 13:30:38 -0400 Subject: vimrc: Add gp mapping for git log of current file Open the current file's `git log -p [file]` with a quick mapping so I don't have to switch to another terminal or Ctrl-Z and type in the git command manually. This is something that I do quite often so it felt ripe for a mapping to make it quicker. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index ad81b4b..92cf1e3 100644 --- a/vimrc +++ b/vimrc @@ -327,6 +327,9 @@ " * Modify `git blame` mapping to use custom git-blamer plugin " * Change pick command from `find` to `ag` for speed " +" 2015.08.12: +" * Add gp mapping to open the git log for the current file +" " Pathogen @@ -657,6 +660,7 @@ cnoremap f nnoremap p :read !pbpaste nnoremap gb :GitBlamer +nnoremap gp :!git log -p % -- cgit v1.2.3