How to get a syntax highlight in vi editor?

Asked by saridhamani

Hi,
  I'm doing C programming using vi editor. I was trying to put Syntax Highlight option for that. But i didn't find any options like that. So facing problems while typing the datatypes,keywords, etc..
Hope somebody will give the solution for my problem.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Qwerty Maniac
Solved:
Last query:
Last reply:
Revision history for this message
Best Qwerty Maniac (qwertymaniac) said :
#1

Use the syntax enable command:

:syntax enable

Hope you have the full vim installed and not just the vim-tiny that comes by default (I think).

Revision history for this message
saridhamani (saridha-mani) said :
#2

Yes now i installed full vim. Got the solution also.

Thanks Maniac.