Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-03-2006, 03:52 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 6

Rep: Reputation: 0
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?
Old 05-03-2006, 03:57 PM   #2
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
You probably have a .vimrc file in your home directory. Copy it to root's home directory.
Old 05-04-2006, 12:53 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
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.
Old 05-04-2006, 01:06 AM   #4
LQ Newbie
Registered: Jan 2006
Posts: 6

Original Poster
Rep: Reputation: 0
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. :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vim Cursor Color Mr_Munkey Linux - Software 0 01-06-2006 06:42 PM
VIM Color Syntax Highliting bsg Linux - Newbie 5 10-07-2005 09:31 PM
anyone knows how to disable color for vim in console? linuxzouk Linux - Newbie 2 06-07-2004 11:58 PM
vim color highlighting new_user10 Programming 9 11-02-2003 01:40 PM
Color Coded Vim podollb Linux - Software 5 10-16-2003 05:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration