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...
Written by Rajeev N Bharshetty
Related protips
2 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#