diff --git a/README.md b/README.md index ad90ad8..56336eb 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/open-the-fugitive-git-summary-window.md b/vim/open-the-fugitive-git-summary-window.md new file mode 100644 index 0000000..9dc72db --- /dev/null +++ b/vim/open-the-fugitive-git-summary-window.md @@ -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)