PDA

View Full Version : vim


LaRoza
August 6th, 2007, 09:54 AM
When I use vim in Ubuntu, there is no syntax highlighting. When I used vim in Arch, it had syntax highlighting and auto indenting. If there is another package or addon, what is it? And if it is a setting, how to I alter them?

I would like to be able to control spaces/tabs, auto indenting, and syntax highlighting.

Thanks.

nichipet
August 6th, 2007, 10:06 AM
I'm not on Ubuntu (or any other *nix system) to test this, but I believe you want to do this:

vim ~/.vimrc

then add in the file:

syntax on
set ai

I think that will turn on syntax highlighting and autoindent. I haven't found control spaces/tabs yet.

LaRoza
August 6th, 2007, 10:23 AM
Thanks!

Vim is a very good editor so far, I really like being able to edit, compile, run, execute system commands with out taking my hands off the keyboard.