From e49b9a930344fb4fc30bd7bab038f089596007b3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 8 Jul 2019 08:02:53 -0400 Subject: [PATCH] Pass bang to :Gblame to get horizontal split Closes https://github.com/tpope/vim-fugitive/issues/1183 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d44c240..9e77eca 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4122,7 +4122,7 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args) let current = line('.') let temp = s:Resolve(temp) let s:temp_files[s:cpath(temp)] = { 'dir': s:Dir(), 'filetype': 'fugitiveblame', 'args': cmd, 'bufnr': bufnr } - exe 'keepalt leftabove vsplit '.temp + exe 'keepalt' (a:bang ? 'split' : 'leftabove vsplit') . temp let b:fugitive_blamed_bufnr = bufnr let b:fugitive_type = 'blame' let w:fugitive_leave = restore