From dbdc9475337861ffca0638b882b94d58a186f7cd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 14 Jul 2019 14:13:31 -0400 Subject: [PATCH] Fix as :Gblame map --- autoload/fugitive.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index cac5705..3d6e355 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4737,17 +4737,14 @@ endfunction function! fugitive#MapJumps(...) abort if !&modifiable if get(b:, 'fugitive_type', '') ==# 'blob' - nnoremap :0,3Gblame - else - nnoremap :exe GF("edit") - endif - if get(b:, 'fugitive_type', '') ==# 'blob' + nnoremap :0,1Gblame nnoremap o :0,2Gblame nnoremap S :echoerr 'Use gO' nnoremap gO :vertical 0,2Gblame nnoremap O :tab 0,2Gblame nnoremap p :0,3Gblame else + nnoremap :exe GF("edit") nnoremap o :exe GF("split") nnoremap S :echoerr 'Use gO' nnoremap gO :exe GF("vsplit")