Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugins vim-gitgutter and vim-fugitive
These plugins make working with Git a sinch. vim-gitgutter shows a +/-/~ next to lines that have been added, removed, and modified, and also shows a summary of the number of lines affected in vim-airline's statusbar. vim-fugitive makes working with Git from within Vim incredibly easy. Here's a lit of common commands and their analogs to the normal git commands: - git add --> :Gwrite - git commit --> :Gcommit - git push --> :Gpush - git checkout <file name> --> :Gread - git blame --> :Gblame - ... many more!
- Loading branch information
1e5757e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(<-- prev step) ... (next step -->)
vim-fugitive is one of those plugins that you almost definitely have to read the docs for. It gives you a lot of commands for using common Git commands from within Vim. Check out the information here:
https://github.com/tpope/vim-fugitive
1e5757e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I highly recommend going over the Vimcasts episodes about Fugitive.
They offer a nice showcase of the different features and how to get started with this awesome plugin.
Vimcast #31: Fugitive.vim - a complement to command line git
Vimcast #32: Fugitive.vim - working with the git index
Vimcast #33: Fugitive.vim - resolving merge conflicts with vimdiff
Vimcast #34: Fugitive.vim - browsing the git object database
Vimcast #35: Fugitive.vim - exploring the history of a git repository