A lot of us use vim for editing almost anything from .html files, to .c files and also conf files.

And if some of you have also used some other editors, like screem for html files may have noticed, that vim has no color for the syntax, which is really useful when you are programming or editing .conf files, so how to enable that in our Debian or Ubuntu boxes? Well for Debian Etch.

Edit the file:

/etc/vim/vimrc

or your own vimrc file at:

$HOME/.vimrc

and look for this lines.

” Vim5 and later versions support syntax highlighting. Uncommenting the next “ line enables syntax highlighting by default. “ syntax on

and uncomment the last one, so you should have it like this.

” Vim5 and later versions support syntax highlighting. Uncommenting the next “ line enables syntax highlighting by default. syntax on

that is all,

For Ubuntu do this:

sudo apt-get install vim-full

and then proceed like the Debian case.

now enjoy your improved old vi / vim.

you can also read this interesting article,

How to use vim