1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Add Open The Fugitive Git Summary Window as a vim til

This commit is contained in:
jbranchaud
2021-02-19 13:32:17 -06:00
parent 6cdbc28fa8
commit 29af66b988
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# Open The Fugitive Git Summary Window
The [`vim-fugitive` plugin](https://github.com/tpope/vim-fugitive) can show a
git summary window that is "akin to git-status". There are two ways to open up
this window.
The short-hand way of doing this is with `:G` (or `:Git`) with no arguments.
For me, this opens the `fugitive-summary` in a split.
The other way is with the `:Gedit` command. This command can take a variety of
arguments, and when you pass it `:` as an argument, it will open a window with
the `fugitive-summary` (i.e. `:Gedit :`).
I tend to short-hand this as `:Ge:`.
See `:h fugitive-summary` and `:h fugitive-object` for more details on this.
[source](https://www.youtube.com/watch?v=rzUMjqD6NMQ)