Harsh Kumar’s Weblog

Archive for October 21st, 2008

Colored Syntax in Vi editor

Posted by: harsh1kumar on: October 21, 2008

This is for my further reference.
This methord will give different beautiful colours to functions, strings, comments, keywords, etc f
or c, c+, etc.
For ubuntu first install the package vim-full. Then make a file in your home directory with the name .vimr. Type this in command line:
viĀ  ~/.vimrc
Put this line in this file:
:syntax enable
Then you are done. [...]

Tags: ,