VimPlugin: Fugitive

From wikinotes

Documentation

:h fugitive https://github.com/tpope/vim-fugitive/blob/master/doc/fugitive.txt
github https://github.com/tpope/vim-fugitive

Tutorials

vimcasts (5 part series) http://vimcasts.org/blog/2011/05/the-fugitive-series/

Usage

Index

" commands
" ========
:Gstatus  " opens git-status


" hotkeys
" =======
-         " toggle git add/untrack (works with multiple files selected)
ca        " git commit --amend
cc        " git commit

You can visually select changes to commit

:Gvdiff
" select changes and diffput/diffget

Diff

:Gvdiffsplit master                  " side-by-side changes of the file in master
:Git difftool --name-only master...  " files changed since master added to quickfix

Service Integrations

:Gbrowse   " show current file in github/gitlab/bitbucket/gitee/pagure/phabricator/azure/devops/sourcehut