Fugitive.vim
As an alternative, have you thought about using fugitive?
I'm not going to lie to you; fugitive.vim may very well be the best
Git wrapper of all time.
There is a an excellent Vimcasts episode, Fugitive.vim - resolving merge conflicts with vimdiff, by Drew Neil. This is part of a series on fugitive.
To use fugitive you can just run :Gdiff
to get git diff
of the current file. Bonus: you can use fugative.vim inside of GVim, MacVim, or whatever Vim gui you have.
Fugitive has a lot more to offer than just being a diff tool so make sure you read the documentation and/or check out the vimcasts.
git difftool
Use git difftool
and pick gvimdiff. e.g. git difftool --tool gvimdiff
instead of git diff
. For more help see git difftool --help
and git difftool --tool-help
. You may also want to look into setting diff.guitool
or diff.tool
config options.