Skip to content

Commit 29af66b

Browse files
committed
Add Open The Fugitive Git Summary Window as a vim til
1 parent 6cdbc28 commit 29af66b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
1010

1111
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
1212

13-
_1053 TILs and counting..._
13+
_1054 TILs and counting..._
1414

1515
---
1616

@@ -1142,6 +1142,7 @@ _1053 TILs and counting..._
11421142
- [Open FZF Result In A Split](vim/open-fzf-result-in-a-split.md)
11431143
- [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md)
11441144
- [Open The Directory Of The Current File](vim/open-the-directory-of-the-current-file.md)
1145+
- [Open The Fugitive Git Summary Window](vim/open-the-fugitive-git-summary-window.md)
11451146
- [Open The Gemfile](vim/open-the-gemfile.md)
11461147
- [Open The Latest Rails Migration](vim/open-the-latest-rails-migration.md)
11471148
- [Open The Selected Lines In GitHub With Gbrowse](vim/open-the-selected-lines-in-github-with-gbrowse.md)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Open The Fugitive Git Summary Window
2+
3+
The [`vim-fugitive` plugin](https://github.com/tpope/vim-fugitive) can show a
4+
git summary window that is "akin to git-status". There are two ways to open up
5+
this window.
6+
7+
The short-hand way of doing this is with `:G` (or `:Git`) with no arguments.
8+
For me, this opens the `fugitive-summary` in a split.
9+
10+
The other way is with the `:Gedit` command. This command can take a variety of
11+
arguments, and when you pass it `:` as an argument, it will open a window with
12+
the `fugitive-summary` (i.e. `:Gedit :`).
13+
14+
I tend to short-hand this as `:Ge:`.
15+
16+
See `:h fugitive-summary` and `:h fugitive-object` for more details on this.
17+
18+
[source](https://www.youtube.com/watch?v=rzUMjqD6NMQ)

0 commit comments

Comments
 (0)