Add note about :Gvdiffsplit

This commit is contained in:
Rajit Banerjee
2021-03-08 20:34:10 +00:00
committed by Tim Pope
parent f5451e4379
commit f037ce631a

View File

@@ -36,10 +36,10 @@ Additional commands are provided for higher level operations:
* View any blob, tree, commit, or tag in the repository with `:Gedit` (and * View any blob, tree, commit, or tag in the repository with `:Gedit` (and
`:Gsplit`, etc.). For example, `:Gedit HEAD~3:%` loads the current file as `:Gsplit`, etc.). For example, `:Gedit HEAD~3:%` loads the current file as
it existed 3 commits ago. it existed 3 commits ago.
* `:Gdiffsplit` brings up the staged version of the file side by side with the * `:Gdiffsplit` (or `:Gvdiffsplit`) brings up the staged version of the file
working tree version. Use Vim's diff handling capabilities to apply changes side by side with the working tree version. Use Vim's diff handling capabilities
to the staged version, and write that buffer to stage the changes. You can to apply changes to the staged version, and write that buffer to stage the changes.
also give an arbitrary `:Gedit` argument to diff against older versions of You can also give an arbitrary `:Gedit` argument to diff against older versions of
the file. the file.
* `:Gread` is a variant of `git checkout -- filename` that operates on the * `:Gread` is a variant of `git checkout -- filename` that operates on the
buffer rather than the file itself. This means you can use `u` to undo it buffer rather than the file itself. This means you can use `u` to undo it