From fa5892dcace80677d894df659fdefe3ce617ceea Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 27 Aug 2021 11:10:25 -0400 Subject: [PATCH] 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. --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index eba4478..eb50d52 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6857,6 +6857,8 @@ function! fugitive#BlameFileType() abort call s:Map('n', 'O', ':exe BlameCommit("tabedit")', '') call s:Map('n', 'p', ':exe BlameCommit("pedit")', '') call s:Map('n', '.', ": =substitute(BlameCommitFileLnum()[0],'^$','@','')") + call s:Map('n', '(', "-") + call s:Map('n', ')', "+") call s:Map('n', 'A', ":exe 'vertical resize '.(linechars('.\\{-\\}\\ze [0-9:/+-][0-9:/+ -]* \\d\\+)')+1+v:count)", '') call s:Map('n', 'C', ":exe 'vertical resize '.(linechars('^\\S\\+')+1+v:count)", '') call s:Map('n', 'D', ":exe 'vertical resize '.(linechars('.\\{-\\}\\ze\\d\\ze\\s\\+\\d\\+)')+1-v:count)", '')