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.

link|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
feedback

2 Answers

up vote 0 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.

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

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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