commit 3c641a7ef5e97d26737e91eaa555ff72a709cfc4 (tree)
parent c6931a519fc73d66c42d5132a6d0ff5e8387d978
Author: Tim Pope <code@tpope.net>
Date: Wed, 28 Mar 2012 20:35:47 -0400
Use - not <CR> for reblame
The plan is to ultimately reclaim <CR> for closing the blame, then
jumping to the commit.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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
- <CR> 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
@@ -1533,6 +1533,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
nnoremap <buffer> <silent> q :exe substitute('bdelete<Bar>'.bufwinnr(b:fugitive_blamed_bufnr).' wincmd w','<Bar>-1','','')<CR>
nnoremap <buffer> <silent> gq :exe substitute('bdelete<Bar>'.bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>if expand("%:p") =~# "^fugitive:[\\/][\\/]"<Bar>Gedit<Bar>endif','<Bar>-1','','')<CR>
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>BlameJump('')<CR>
+ nnoremap <buffer> <silent> - :<C-U>exe <SID>BlameJump('')<CR>
nnoremap <buffer> <silent> P :<C-U>exe <SID>BlameJump('^'.v:count1)<CR>
nnoremap <buffer> <silent> ~ :<C-U>exe <SID>BlameJump('~'.v:count1)<CR>
nnoremap <buffer> <silent> i :<C-U>exe <SID>BlameCommit("exe 'norm q'<Bar>edit")<CR>