From 6b02026cf965134b88a582d744234f3513501d61 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 8 Jul 2019 09:40:49 -0400 Subject: [PATCH] Fix :Gblame with existing q map --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index cc8952a..2ac0467 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4141,7 +4141,7 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args) nnoremap q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdelete','^-1','','') endif exe 'nnoremap ' s:nowait "gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w'.bufnr('').'bdeleteif expand(''%:p'') =~# ''^fugitive:[\\/][\\/]''Geditendif','^-1','','')" - nnoremap :exe BlameCommit("exe 'norm q'edit") + nnoremap :exe BlameCommit("exe 'norm gq'edit") nnoremap - :exe BlameJump('') nnoremap P :exe BlameJump('^'.v:count1) nnoremap ~ :exe BlameJump('~'.v:count1)