mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Open The Fugitive Git Summary Window as a vim til
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
||||
|
||||
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
|
||||
|
||||
_1053 TILs and counting..._
|
||||
_1054 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -1142,6 +1142,7 @@ _1053 TILs and counting..._
|
||||
- [Open FZF Result In A Split](vim/open-fzf-result-in-a-split.md)
|
||||
- [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md)
|
||||
- [Open The Directory Of The Current File](vim/open-the-directory-of-the-current-file.md)
|
||||
- [Open The Fugitive Git Summary Window](vim/open-the-fugitive-git-summary-window.md)
|
||||
- [Open The Gemfile](vim/open-the-gemfile.md)
|
||||
- [Open The Latest Rails Migration](vim/open-the-latest-rails-migration.md)
|
||||
- [Open The Selected Lines In GitHub With Gbrowse](vim/open-the-selected-lines-in-github-with-gbrowse.md)
|
||||
|
||||
18
vim/open-the-fugitive-git-summary-window.md
Normal file
18
vim/open-the-fugitive-git-summary-window.md
Normal 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)
|
||||
Reference in New Issue
Block a user