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.
Archives
Categories
Tags
Blogroll
Other
Meta
Pingback: Dogma » vi no syntax highlight in CentOS?