Page 1 of 1
vi / vim preferences
Posted:
Thu Dec 11, 2008 8:59 am
by ollie wright
I have just started using the vim editor on my home computer running Ubuntu and I have some questions:
[list]How do you turn on line numbers?[/list:u]
[list]How do you get colors like opus has? [/list:u]
[list]How do you get the highlighting of matching brackets, etc.?[/list:u]
Thanks..
Re: vi / vim preferences
Posted:
Fri Dec 12, 2008 10:39 am
by Rich Simms
See Nic's post on how to turn on line numbers at:
[url]http://simms-teach.com/forum/viewtopic.php?f=9&t=441&p=1439&hilit=vi+line+number#p1439[/url]
Ubuntu has a reduced functionality VIM so:
[list]
[*]Get the full version with: apt-get install vim-full[/*:m]
[*]Alias vi to vim[/*:m]
[*]In vim, issue the :sytax enable command[/*:m]
[*]Or better, echo "sytax enable" >> .vimrc (in your home directory)[/*:m][/list:u]
- Rich
Re: vi / vim preferences
Posted:
Fri Dec 12, 2008 5:35 pm
by collin seaton
Things I like to add to my .vimrc file:
set tabstop=4
set expandtab
The first sets the number of spaces a tab in the file accounts for.
The second expands tabs to spaces.
This is just my preference.
-collin