[CentOS] Colors in vi for user root

Sun Mar 9 11:29:53 UTC 2008
Johnny Hughes <johnny at centos.org>

Mário Gamito wrote:
> Hi,
> 
> How can I have vi with syntax hilghting for root ?
> Regular users have it, but not root's.
> 
> I've seen the hidden files of a regular user home, but found nothing.
> 

And one last way if vim-enhanced is installed ...

put this in the /root/.bashrc

alias vi='vim'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080309/4cd5e798/attachment-0005.sig>