From a45e2c6d577ca3ec6c10ed82465aa9650316f70c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 2 Sep 2019 19:57:52 -0400 Subject: [PATCH] Provide :Gr as alias for :Gread --- autoload/fugitive.vim | 1 + doc/fugitive.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 4b0846d..af1e12a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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(( > 0 ? : '').( ? 'split' : 'edit'), 0, '', , [])") call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gvsplit execute s:Open(( > 0 ? : '').( ? 'vsplit' : 'edit!'), 0, '', , [])") call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete -addr=tabs Gtabedit execute s:Open(( >= 0 ? : '').'tabedit', 0, '', , [])") +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") " Section: :Gwrite, :Gwq diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 99078a4..68be1af 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -115,7 +115,7 @@ that are part of Git repositories). :0Gsplit! to suppress the split and open it in the current window. - *fugitive-:Gread* + *fugitive-:Gr* *fugitive-:Gread* :Gread [object] Empty the buffer and |:read| a |fugitive-object|. When the argument is omitted, this is similar to 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}. - *fugitive-:Gread!* + *fugitive-:Gr!* *fugitive-:Gread!* :Gread! [args] Empty the buffer and |:read| the output of a Git command. For example, :Gread! show HEAD:%.