Last Updated: February 25, 2016
·
2.292K
· rshetty

Vim Git Diff in the Gutter

Now get the Git Diff in your vim using this new plugin.

https://github.com/airblade/vim-gitgutter

Install it as

cd ~/.vim/bundle
git clone git://github.com/airblade/vim-gitgutter.git

To activate it by default add this to your vimrc file

let g:gitgutter_enabled = 1

Or manually do it as

turn off with :DisableGitGutter
turn on with :EnableGitGutter
toggle with :ToggleGitGutter.

That's it.

Happy Hacking...

2 Responses
Add your response

let g:gitgutter_enabled = 0 makes that you have to call EnableGitGutter to see changes.
If you want to turn on by default, you should switch 0 to 1.

over 1 year ago ·

@bartlomiejdanek : Thanks for that, Changed

over 1 year ago ·