Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: kruhm on July 02, 2012, 02:17:32 AM

Title: vi syntax highlight
Post by: kruhm on July 02, 2012, 02:17:32 AM
Hi Everyone,

How do I get vi to run /usr/bin/vim?

In SME v8:
Code: [Select]
vi filename
runs /bin/vi and syntax highlighting is off.

In SME v7:
Code: [Select]
vi filename
runs /usr/bin/vim and syntax highlighting is on.

Thanks in advance.
Title: Re: vi syntax highlight
Post by: kruhm on July 02, 2012, 02:23:53 AM
Well here's how I did it...

Code: [Select]
vi ~/.bashrc
Add a line:
Code: [Select]
alias vi='/usr/bin/vim'
Save it:
Code: [Select]
:wq
Logout and log back in.

Now
Code: [Select]
vi filenamenow runs /usr/bin/vim and sytax highlighting is on.