Change :Git! to split by default
This commit is contained in:
parent
20bdfee4b7
commit
e7f272a36c
@ -1960,7 +1960,7 @@ function! s:GitCommand(line1, line2, range, count, bang, mods, reg, arg, args) a
|
|||||||
let tree = s:Tree(dir)
|
let tree = s:Tree(dir)
|
||||||
let [args, after] = s:SplitExpandChain(a:arg, tree)
|
let [args, after] = s:SplitExpandChain(a:arg, tree)
|
||||||
if a:bang
|
if a:bang
|
||||||
return s:OpenExec('edit', a:mods, args, dir) . after
|
return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, args, dir) . after
|
||||||
endif
|
endif
|
||||||
let git = s:UserCommand(dir)
|
let git = s:UserCommand(dir)
|
||||||
if has('gui_running') && !has('win32')
|
if has('gui_running') && !has('win32')
|
||||||
|
@ -21,7 +21,8 @@ that are part of Git repositories).
|
|||||||
|
|
||||||
*fugitive-:Git!*
|
*fugitive-:Git!*
|
||||||
:Git! [args] Like |:Git|, but capture the output into a temp file,
|
:Git! [args] Like |:Git|, but capture the output into a temp file,
|
||||||
and edit that temp file.
|
and |:split| that that temp file. Use :0Git to
|
||||||
|
|:edit| the temp file instead.
|
||||||
|
|
||||||
*fugitive-:Gcd*
|
*fugitive-:Gcd*
|
||||||
:Gcd [directory] |:cd| relative to the repository.
|
:Gcd [directory] |:cd| relative to the repository.
|
||||||
@ -106,8 +107,10 @@ that are part of Git repositories).
|
|||||||
|
|
||||||
:Gsplit! [args] *fugitive-:Gsplit!* *fugitive-:Gvsplit!*
|
:Gsplit! [args] *fugitive-:Gsplit!* *fugitive-:Gvsplit!*
|
||||||
:Gvsplit! [args] *fugitive-:Gtabedit!* *fugitive-:Gpedit!*
|
:Gvsplit! [args] *fugitive-:Gtabedit!* *fugitive-:Gpedit!*
|
||||||
:Gtabedit! [args] Like |:Git!|, but open the resulting temp file in a
|
:Gtabedit! [args] Capture the output of `git [args]` to a temp file and
|
||||||
:Gpedit! [args] split, tab, or preview window.
|
:Gpedit! [args] open it in a split, tab, or preview window. Use
|
||||||
|
:0Gsplit! to suppress the split and open it in the
|
||||||
|
current window.
|
||||||
|
|
||||||
*fugitive-:Gread*
|
*fugitive-:Gread*
|
||||||
:Gread [object] Empty the buffer and |:read| a |fugitive-object|.
|
:Gread [object] Empty the buffer and |:read| a |fugitive-object|.
|
||||||
|
Loading…
Reference in New Issue
Block a user