[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

vi / vim preferences

Introduction to UNIX/Linux

vi / vim preferences

Postby ollie wright on Thu Dec 11, 2008 8:59 am

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..
User avatar
ollie wright
 
Posts: 88
Joined: Wed Sep 03, 2008 7:28 pm

Re: vi / vim preferences

Postby Rich Simms on Fri Dec 12, 2008 10:39 am

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
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm

Re: vi / vim preferences

Postby collin seaton on Fri Dec 12, 2008 5:35 pm

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
collin seaton
 
Posts: 24
Joined: Wed Sep 03, 2008 7:26 pm


Return to CIS 90 - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron