Add :GUnlink, like in eunuch.vim

This currently mirrors :GRemove, but gives us the option to add a third
variant.
This commit is contained in:
Tim Pope
2022-03-09 10:50:24 -05:00
parent afd6c13c6b
commit 46652a304f
3 changed files with 7 additions and 1 deletions

View File

@@ -6629,6 +6629,10 @@ function! fugitive#RemoveCommand(line1, line2, range, bang, mods, arg, ...) abor
return s:Remove('edit', a:bang)
endfunction
function! fugitive#UnlinkCommand(line1, line2, range, bang, mods, arg, ...) abort
return s:Remove('edit', a:bang)
endfunction
function! fugitive#DeleteCommand(line1, line2, range, bang, mods, arg, ...) abort
return s:Remove('bdelete', a:bang)
endfunction