LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VIM in Color (https://www.linuxquestions.org/questions/linux-newbie-8/vim-in-color-441329/)

aardwolf64 05-03-2006 02:52 PM

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?

ataraxia 05-03-2006 02:57 PM

You probably have a .vimrc file in your home directory. Copy it to root's home directory.

aardwolf64 05-03-2006 11:53 PM

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.

aardwolf64 05-04-2006 12:06 AM

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 02:42 AM.