[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - vi / vim preferences
Page 1 of 1

vi / vim preferences

PostPosted: 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

PostPosted: 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

PostPosted: 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