Link to home
Start Free TrialLog in
Avatar of paranoidcookie
paranoidcookieFlag for United Kingdom of Great Britain and Northern Ireland

asked on

vim syntax highlighting

Can anyone tell me a good guide on how to add syntax highlighting to vim (specifically for apple osx but I guess it much the same for any platform).
Avatar of ADSaunders
ADSaunders

See www.vim.org, vim now has syntax highlighting built in.

regards .. Alan
SOLUTION
Avatar of ADSaunders
ADSaunders

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, you can use gvim, and simply use the syntax menu to highlight.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if it is gVim, goto syntax -> automatic in the memu bars
Avatar of paranoidcookie

ASKER

Thanks all I ran

:syntax enable

but it dosnt highlight any of my sample c prog I guess im missing something I used to use red hat and all the higlighting was done by default.

I have a .viminfo file is that the same as .vimrc
no, a .vimrc file contains your settings options in there,

there are loads of settings (check vim website) and you can add them into this file to by set everytime you load vim