From 3c641a7ef5e97d26737e91eaa555ff72a709cfc4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 28 Mar 2012 20:35:47 -0400 Subject: [PATCH] Use - not for reblame The plan is to ultimately reclaim for closing the blame, then jumping to the commit. --- doc/fugitive.txt | 2 +- plugin/fugitive.vim | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fugitive.txt b/doc/fugitive.txt index df976a3..2fd7793 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -171,7 +171,7 @@ that are part of Git repositories). i q, then open commit o open commit in horizontal split O open commit in new tab - reblame at commit + - reblame at commit ~ reblame at [count]th first grandparent P reblame at [count]th parent (like HEAD^[count]) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index dbaed3a..c790f7e 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1533,6 +1533,7 @@ function! s:Blame(bang,line1,line2,count,args) abort nnoremap q :exe substitute('bdelete'.bufwinnr(b:fugitive_blamed_bufnr).' wincmd w','-1','','') nnoremap gq :exe substitute('bdelete'.bufwinnr(b:fugitive_blamed_bufnr).' wincmd wif expand("%:p") =~# "^fugitive:[\\/][\\/]"Geditendif','-1','','') nnoremap :exe BlameJump('') + nnoremap - :exe BlameJump('') nnoremap P :exe BlameJump('^'.v:count1) nnoremap ~ :exe BlameJump('~'.v:count1) nnoremap i :exe BlameCommit("exe 'norm q'edit")