diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 2526e6d..1edfb83 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -157,6 +157,9 @@ plus |:grep|. *:Gpedit* :Gpedit [object] |:pedit| a |fugitive-object|. + *:Gdrop* +:Gdrop [object] |:drop| a |fugitive-object|. + *:Gread* *fugitive-:Gr* :Gread [object] Empty the buffer and |:read| a |fugitive-object|. When the argument is omitted, this is similar to diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 7496481..1982b16 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -582,6 +582,7 @@ exe 'command! -bar -bang -nargs=* -complete=customlist, exe 'command! -bar -bang -nargs=* -range=-1' s:addr_other '-complete=customlist,fugitive#EditComplete Gsplit exe fugitive#Open(( > 0 ? : "").( ? "split" : "edit"), 0, "", )' exe 'command! -bar -bang -nargs=* -range=-1' s:addr_other '-complete=customlist,fugitive#EditComplete Gvsplit exe fugitive#Open(( > 0 ? : "").( ? "vsplit" : "edit!"), 0, "", )' exe 'command! -bar -bang -nargs=* -range=-1' s:addr_tabs '-complete=customlist,fugitive#EditComplete Gtabedit exe fugitive#Open(( >= 0 ? : "")."tabedit", 0, "", )' +exe 'command! -bar -bang -nargs=* -complete=customlist,fugitive#EditComplete Gdrop exe fugitive#Open("drop", 0, "", )' if exists(':Gr') != 2 exe 'command! -bar -bang -nargs=* -range=-1 -complete=customlist,fugitive#ReadComplete Gr exe fugitive#ReadCommand(, , +"", 0, "", )'