Fix README formatting

This commit is contained in:
Tim Pope
2021-04-16 15:19:03 -04:00
parent 9a1dab0b27
commit 55e9f2f47e

View File

@@ -36,11 +36,11 @@ 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` (or `:Gvdiffsplit`) brings up the staged version of the file * `:Gdiffsplit` (or `:Gvdiffsplit`) brings up the staged version of the file
side by side with the working tree version. Use Vim's diff handling capabilities side by side with the working tree version. Use Vim's diff handling
to apply changes to the staged version, and write that buffer to stage the changes. capabilities to apply changes to the staged version, and write that buffer
You can also give an arbitrary `:Gedit` argument to diff against older versions of to stage the changes. You can also give an arbitrary `:Gedit` argument to
the file. diff against older versions of 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
and you never get any warnings about the file changing outside Vim. and you never get any warnings about the file changing outside Vim.