Enter your email address:

Delivered by FeedBurner

How to improve vim in Debian and Ubuntu, (Sintax coloring)


StumbleUpon Toolbar

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

Trackback URL for this post:

http://www.go2linux.org/trackback/170
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Good Job!!! It was very

Good Job!!!
It was very useful !!
Thanks,
Shameer

Thank you! Very

Thank you!

Very helpful!

/Hajo

thanks a lot! :D

thanks a lot! :D

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting