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")