Fix issues with using vi as git's editor on Mac OS X.

Details similar to: http://andrewho.co.uk/weblog/vim-pathogen-with-mutt-and-git