mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Provide :Gr as alias for :Gread
This commit is contained in:
@@ -4045,6 +4045,7 @@ call s:command("-bar -bang -nargs=* -complete=customlist,s:ReadComplet
|
|||||||
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gsplit execute s:Open((<count> > 0 ? <count> : '').(<count> ? 'split' : 'edit'), <bang>0, '<mods>', <q-args>, [<f-args>])")
|
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gsplit execute s:Open((<count> > 0 ? <count> : '').(<count> ? 'split' : 'edit'), <bang>0, '<mods>', <q-args>, [<f-args>])")
|
||||||
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gvsplit execute s:Open((<count> > 0 ? <count> : '').(<count> ? 'vsplit' : 'edit!'), <bang>0, '<mods>', <q-args>, [<f-args>])")
|
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gvsplit execute s:Open((<count> > 0 ? <count> : '').(<count> ? 'vsplit' : 'edit!'), <bang>0, '<mods>', <q-args>, [<f-args>])")
|
||||||
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete -addr=tabs Gtabedit execute s:Open((<count> >= 0 ? <count> : '').'tabedit', <bang>0, '<mods>', <q-args>, [<f-args>])")
|
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete -addr=tabs Gtabedit execute s:Open((<count> >= 0 ? <count> : '').'tabedit', <bang>0, '<mods>', <q-args>, [<f-args>])")
|
||||||
|
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gr", "Read")
|
||||||
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gread", "Read")
|
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gread", "Read")
|
||||||
|
|
||||||
" Section: :Gwrite, :Gwq
|
" Section: :Gwrite, :Gwq
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ that are part of Git repositories).
|
|||||||
:0Gsplit! to suppress the split and open it in the
|
:0Gsplit! to suppress the split and open it in the
|
||||||
current window.
|
current window.
|
||||||
|
|
||||||
*fugitive-:Gread*
|
*fugitive-:Gr* *fugitive-:Gread*
|
||||||
:Gread [object] Empty the buffer and |:read| a |fugitive-object|.
|
:Gread [object] Empty the buffer and |:read| a |fugitive-object|.
|
||||||
When the argument is omitted, this is similar to
|
When the argument is omitted, this is similar to
|
||||||
git-checkout on a work tree file or git-add on a stage
|
git-checkout on a work tree file or git-add on a stage
|
||||||
@@ -123,7 +123,7 @@ that are part of Git repositories).
|
|||||||
|
|
||||||
:{range}Gread [object] |:read| in a |fugitive-object| after {range}.
|
:{range}Gread [object] |:read| in a |fugitive-object| after {range}.
|
||||||
|
|
||||||
*fugitive-:Gread!*
|
*fugitive-:Gr!* *fugitive-:Gread!*
|
||||||
:Gread! [args] Empty the buffer and |:read| the output of a Git
|
:Gread! [args] Empty the buffer and |:read| the output of a Git
|
||||||
command. For example, :Gread! show HEAD:%.
|
command. For example, :Gread! show HEAD:%.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user