VIM in Color
I'm currently using Fedora core 5, and when I use VIM as a regular user all of the HTML is neatly colored and easy to read. If I edit the same file while logged in as root, everything is all white. Where should I look for the setting to enable color for root?
|
You probably have a .vimrc file in your home directory. Copy it to root's home directory.
|
There isn't a .vimrc file in my home directory. I found .viminfo, but copying that to root's home directory didn't help anything.
|
I did a little research, and it had to do with aliases. I have just been typing "vi". The alias isn't set for accounts less than 100 (i.e. root). Adding a simple: alias vi='vim' to my .bashrc fixed the problem. I love Google. :-)
|
All times are GMT -5. The time now is 07:58 AM. |