From a23dcec3d260d6be206a24523fb1cebfe6953ae2 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 1 Oct 2011 04:02:29 -0400 Subject: [PATCH] Return to blamed buffer on q in blame --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 9599523..5cf0227 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1483,6 +1483,7 @@ function! s:Blame(bang,line1,line2,count,args) abort if exists('+relativenumber') setlocal norelativenumber endif + nnoremap q :exe substitute('bdelete'.bufwinnr(b:fugitive_blamed_bufnr).' wincmd w','-1','','') nnoremap :exe BlameJump('') nnoremap P :exe BlameJump('^'.v:count1) nnoremap ~ :exe BlameJump('~'.v:count1)