diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 80350d6..f7e3f0f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2323,6 +2323,7 @@ function! s:Blame(bang,line1,line2,count,args) abort nnoremap i :exe BlameCommit("exe 'norm q'edit") nnoremap o :exe BlameCommit((&splitbelow ? "botright" : "topleft")." split") nnoremap O :exe BlameCommit("tabedit") + nnoremap p :exe Edit((&splitbelow ? "botright" : "topleft").' pedit', 0, '', matchstr(getline('.'), '\x\+')) nnoremap A :exe "vertical resize ".(linechars('.\{-\}\ze [0-9:/+-][0-9:/+ -]* \d\+)')+1+v:count) nnoremap C :exe "vertical resize ".(linechars('^\S\+')+1+v:count) nnoremap D :exe "vertical resize ".(linechars('.\{-\}\ze\d\ze\s\+\d\+)')+1-v:count) diff --git a/doc/fugitive.txt b/doc/fugitive.txt index dd816f3..fd15f86 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -230,6 +230,7 @@ that are part of Git repositories). q, then open commit o open commit in horizontal split O open commit in new tab + p open commit in preview window - reblame at commit ~ reblame at [count]th first grandparent P reblame at [count]th parent (like HEAD^[count])