LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-03-2006, 02:52 PM   #1
aardwolf64
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, 02:57 PM   #2
ataraxia
Member
 
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-03-2006, 11:53 PM   #3
aardwolf64
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, 12:06 AM   #4
aardwolf64
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. :-)
 
  


Reply


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 05:42 PM
VIM Color Syntax Highliting bsg Linux - Newbie 5 10-07-2005 08:31 PM
anyone knows how to disable color for vim in console? linuxzouk Linux - Newbie 2 06-07-2004 10:58 PM
vim color highlighting new_user10 Programming 9 11-02-2003 12:40 PM
Color Coded Vim podollb Linux - Software 5 10-16-2003 04:52 PM


All times are GMT -5. The time now is 07:21 AM.

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