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