No vim syntax highlighting for root on CentOS 5?

I noticed that vi’ing a ruby script as a non-root user displayed the syntax highlighting correctly but not when logged in as root. Well, it turns out that /etc/profile.d/vim.sh only aliases vi to vim for users w/ uid >= 100 and /bin/vi and /usr/bin/vim are two seperate binaries. I guess you could hack or remove /etc/profile.d/vim.sh but I’ve just added a local alias for vi to vim in /root/.bashrc instead.

This entry was posted in Linux and tagged . Bookmark the permalink.

One Response to No vim syntax highlighting for root on CentOS 5?

  1. Pingback: Dogma » vi no syntax highlight in CentOS?

Leave a Reply