Buddha

Buddha
Seek

Tuesday, June 24, 2008

Syntax highlighting on VIM

Hi,

Well wont you love to have the syntax/color highlighted in VI editor. Be it a C program or HTML, vim is a classy editor and of course we would love to have syntax highlighted on it.

Aint it ??

How to go ahead and achieve it.

The easiest way - in vim press :

the type 'syntax on'

To do it everytime the editor comes up automatically.

Search for a file called vimrc.
Generally it would be somewhere like /etc/vim/vimrc

Open the file and uncomment the line

"syntax on
to
syntax on [remove whatever is before that]

Play around, make changes, then next time vim is started, syntax is highlighted.

Follow: http://www.ph.unimelb.edu.au/~ssk/vim/syntax.html for actual documentation.


Chao.

No comments: