Provide :Gr as alias for :Gread

This commit is contained in:
Tim Pope
2019-09-02 19:57:52 -04:00
parent 5042fd965d
commit a45e2c6d57
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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:%.