commit fa5892dcace80677d894df659fdefe3ce617ceea (tree)
parent 46a2f58e1de173bc484f4583d29765ccd6fa904a
Author: Tim Pope <code@tpope.net>
Date: Fri, 27 Aug 2021 11:10:25 -0400
Map "(" and ")" in blame buffers
For symmetry with the other buffers. A nice enhancement would be to
jump between distinct commits but this is good enough for now.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -6857,6 +6857,8 @@ function! fugitive#BlameFileType() abort
call s:Map('n', 'O', ':<C-U>exe <SID>BlameCommit("tabedit")<CR>', '<silent>')
call s:Map('n', 'p', ':<C-U>exe <SID>BlameCommit("pedit")<CR>', '<silent>')
call s:Map('n', '.', ":<C-U> <C-R>=substitute(<SID>BlameCommitFileLnum()[0],'^$','@','')<CR><Home>")
+ call s:Map('n', '(', "-")
+ call s:Map('n', ')', "+")
call s:Map('n', 'A', ":<C-u>exe 'vertical resize '.(<SID>linechars('.\\{-\\}\\ze [0-9:/+-][0-9:/+ -]* \\d\\+)')+1+v:count)<CR>", '<silent>')
call s:Map('n', 'C', ":<C-u>exe 'vertical resize '.(<SID>linechars('^\\S\\+')+1+v:count)<CR>", '<silent>')
call s:Map('n', 'D', ":<C-u>exe 'vertical resize '.(<SID>linechars('.\\{-\\}\\ze\\d\\ze\\s\\+\\d\\+)')+1-v:count)<CR>", '<silent>')