diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 6134d9a..612ee39 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -182,7 +182,7 @@ that are part of Git repositories). D resize to end of date/time column q close blame and return to blamed window gq q, then |:Gedit| to return to work tree version - i q, then open commit + q, then open commit o open commit in horizontal split O open commit in new tab - reblame at commit diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index ba268bf..c7b64dd 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1631,7 +1631,7 @@ function! s:Blame(bang,line1,line2,count,args) abort execute "vertical resize ".(s:linechars('.\{-\}\ze\s\+\d\+)')+1) nnoremap q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdelete','^-1','','') nnoremap gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdeleteif expand("%:p") =~# "^fugitive:[\\/][\\/]"Geditendif','^-1','','') - nnoremap :exe BlameJump('') + nnoremap :exe BlameCommit("exe 'norm q'edit") nnoremap - :exe BlameJump('') nnoremap P :exe BlameJump('^'.v:count1) nnoremap ~ :exe BlameJump('~'.v:count1)