Rick Barnes wrote:
I have installed CentOS 4.5 and 5 on 2 separate machines, and both have default installs of vim-enhanced on each of them.
I noticed that I can get syntax highlighting as a regular user, sudo and as root in C4.5. In C5 I only get highlighting as a regular user.
* Check that your /etc/vimrc is actually being loaded:
vim -V
should produce verbose details on what is being sourced by vim.
* Another check: do
vim --version
and make sure that +syntax shows up.
I usually use /root/.vimrc to do root-specific vim stuff, myself.
Regards, Chip Campbell