Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there was a way to enable syntax highlighting on msysgit's "built in" vim. I'm specifically trying to get ruby highlighting to work, but nothing I have tried has enabled it. I'm guessing maybe the msysgit build works differently than the standard unix build.

Any pointers much appeciated.

share|improve this question
Why not use the full Windows build? – Ignacio Vazquez-Abrams Nov 21 '10 at 3:27
Well I could install regular vim, but since I already have this prebundled with msysgit, I was wondering if I could make that version work. I understand and realize that installing the regular vim package would eliminate this need. But I'm honestly curious if I could be able to pull this off. – enriquein Nov 21 '10 at 3:38

After installing vim for Windows go to

C:\Program Files\Vim\vim73\syntax

Copy Everything from that directory into

C:\Program Files\Git\share\vim\vim73\syntax

and voila, your MySysGit version of Vim will also have coloration for all the file types with an associated .vim file.

share|improve this answer
up vote -1 down vote accepted

I finally figured it out. After installing Vim for Windows, I noticed that it doesn't use unix style dot-directories (.vim) for configuration. So I pretty much copied over the vimfiles directory from my vim install to my profile and now I got full syntax highlighting in Vim under MSys.

share|improve this answer
Would you mind providing some walkthrough/sample code reflecting how to achieve this? – Nano Taboada Jul 7 '11 at 17:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.