Friday, September 19, 2008

VIM text editor highlighted..

Hi,

If you are Ubuntu user, you are by default using vim text editor without highlighting. Well, if you have used openSUSE before, then you will notice that its vim editor comes with this feature out-of-the-box.

We managed to see Ubuntu easier and more eye-candy than other Linux distros, so, why this feature is absent from Ubuntu while it is a nice and eye-candy one.

Lets go ahead and enable it together, it is easy:

1. Open a shell ..
2. Type this:
sudo gedit /etc/vim/vimrc
(Install vim if it is not already installed, just type: sudo aptitude install vim).
3. Search for: "syntax"
4. You will see this line commented:
#syntax on
5. Remove the # sign (uncomment the line).
6. Save and exit gedit.
7. We are done, enjoy vim highlighted.

Thanks.

No comments: