Add :Grename

I'll rip out the weird current directory stuff later.
This commit is contained in:
Tim Pope
2018-05-04 21:39:38 -04:00
parent fa1b8652f1
commit dcecb762b0
2 changed files with 24 additions and 6 deletions

View File

@@ -196,7 +196,13 @@ that are part of Git repositories).
:Gmove {destination} Wrapper around git-mv that renames the buffer
afterward. The destination is relative to the current
directory except when started with a /, in which case
it is relative to the work tree. Add a ! to pass -f.
it is relative to the work tree. (This is a holdover
from before |:Grename| and will be removed.) Add a !
to pass -f.
*fugitive-:Grename*
:Grename {destination} Like |:Gmove| but operates relative to the parent
directory of the current file.
*fugitive-:Gdelete*
:Gdelete Wrapper around git-rm that deletes the buffer