From 2157680c7fd1aebd4aeae2ba102c30ec0349a574 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 23 Jul 2015 03:03:19 -0400 Subject: Add git-blamer plugin Create a plugin that runs a `git blame` and opens the result in a new vertical split. This one builds on a43d3caaea3682f58aee6dc295e48cca415067c5 but improves it by adding some extra niceties including moving to the line the cursor was on in the original file, setting appropriate flags so that the split doesn't appear in the buffer list and becomes non-modifiable, and setting cursor and scroll binding so that the buffers scroll together. An `autocmd` resets the original buffer to `noscrollbind` and `nocursorbind`. --- bundle/git-blamer/plugin/git_blamer.vim | 1 + 1 file changed, 1 insertion(+) create mode 100644 bundle/git-blamer/plugin/git_blamer.vim (limited to 'bundle/git-blamer/plugin/git_blamer.vim') diff --git a/bundle/git-blamer/plugin/git_blamer.vim b/bundle/git-blamer/plugin/git_blamer.vim new file mode 100644 index 0000000..52197da --- /dev/null +++ b/bundle/git-blamer/plugin/git_blamer.vim @@ -0,0 +1 @@ +command! GitBlamer :call git_blamer#Blame() -- cgit v1.2.3