commit bdd216827ae53cdf70d933bb30762da9bf42cad4 (tree)
parent 0ac4915cd7c5dcbf142526a71b4a3c25290ebed7
Author: Quinn Strahl <qstrahl@gmail.com>
Date: Thu, 14 Apr 2016 18:54:18 -0400
Make `:Git` open a tab to the left for `:terminal`
- Users of multiple tabs will find themselves back where they started
when the terminal closes, instead of in the next tab over
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -704,7 +704,7 @@ function! s:Git(bang, args) abort
let args = matchstr(a:args,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
if exists(':terminal')
let dir = s:repo().tree()
- tabedit %
+ -tabedit %
execute 'lcd' fnameescape(dir)
execute 'terminal' git args
else