Re: Colors in vi for user root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 7 Mar 2008, 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.

In /etc/profile.d/vim.sh, comment out the line which contains the following:
[ `//usr/bin/id -u` -le 100 ] && return

In my version, it is line 3. Logout and log back in and presto you have
colors, assuming you have the proper packages installed.

Make sure you understand the implications of doing this before you do this.

Regards,

--
Tom Diehl		tdiehl@xxxxxxxxxxxx		Spamtrap address mtd123@xxxxxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux