Reputation: 1895
I've been using gVim for a while now on my Windows box, and I love it. I'm not using Cygwin, and I'd rather not install it. I'm using the msysgit version of Git for Windows.
I'm looking to integrate Git into gVim, so that I don't have to constantly open msysgit and navigate to the correct directory. I feel that integrating the most important commands would really speed up/enhance my code development.
Is there a Vim plugin that would that will do this for me?
I finally just reinstalled Git For Windows a few times until I got the settings I want. I installed Git using the "Run Git and included Unix tools from the Windows Command Prompt." That seems to take care of getting the !git commands to mostly work from within Vim. This old blog post walked me through a few gotchas: http://devlicio.us/blogs/sergio_pereira/archive/2009/05/06/git-ssh-putty-github-unfuddle-the-kitchen-sink.aspx
Upvotes: 3
Views: 4436
Reputation: 53634
There are many Git frontends I know about: Fugitive and VCSCommand were already mentioned, and there are also vim-addon-git (Git only), vcsi (multi-backend), scmfrontend (multi-backend), mine aurum (multi-backend, but I use almost only Mercurial thus others are not that well tested).
From what I know, Fugitive and aurum are the most feature-rich (the main thing I do not have are operations with Git index done by Fugitive), VCSCommand is also good (it is the oldest one and is very popular, thus having lots of bugs fixed), others may have minor advantages, but AFAIK everything what is implemented by one of them is also implemented by fugitive or aurum (of course, I mean only things concerning Git).
And yes, I also know nothing about how well any of these integrate with msysgit. Mine should work as far as system('git')
works, but under Windows (Wine) only Mercurial was tested.
Upvotes: 7
Reputation: 196606
You could try Fugitive (Git-only) or VCSCommand (multi-backend) but I don't know how well they integrate with msysgit
.
It's probably a dumb question but: doesn't :!git commit<CR>
work?
Upvotes: 1