Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Vim and Git on Windows

Tags:

git

vim

windows

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

like image 269
Rustavore Avatar asked May 19 '26 11:05

Rustavore


1 Answers

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.

like image 113
ZyX Avatar answered May 22 '26 03:05

ZyX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!