Fedora Linux Support Community & Resources Center
Old 21st September 2012, 09:38 AM
rgasch Offline
Registered User
Join Date: Aug 2011
Posts: 4
F17: vim: Different syntax colors for root and regular user


on a new F17 install, vim is using different syntax highlighting colors for root and for normal users. The root is dark (comments are such a dark blue that they almost can't be read against a black background), while regular uses have a colorscheme where (for example) comments are nice and bright.

What can cause this and how can I make root use the same colorscheme which regular users get.

Reply With Quote
Old 23rd October 2012, 02:22 PM
rgasch Offline
Registered User
Join Date: Aug 2011
Posts: 4
Re: F17: vim: Different syntax colors for root and regular user

I will answer my own question for the benefit of others who struggle with this same issue.

It turns out that the normal (non-root) user had the environment variable "COLORFGBG" set to the value "15;0" while the root user didn't have this variable set.

Adding a
export COLORFGBG="15;0"
to /etc/profile solved the problem.

Reply With Quote

colors, f17, regular, root, syntax, user, vim

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal (Shell) problems, Root vs regular user 50MissionCrush Using Fedora 6 9th January 2008 02:21 PM
Wireless (Broadcom) & NetworkManager : can connect as root but not as regular user Sam Gamgee Servers & Networking 0 2nd June 2007 08:32 PM
transfer root settings to another regular user duni Installation, Upgrades and Live Media 6 21st August 2006 10:14 AM
Monitor has high contrast inverse colors but icons are still in regular colors... Optimal Aurora Hardware & Laptops 2 13th January 2006 10:51 PM
Installing cedega in my regular user (not in root) orbknives Using Fedora 6 9th September 2004 05:39 PM

Current GMT-time: 02:50 (Monday, 22-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Library BINUS University Travel Photos on Instagram - Bayside Miami - Baka Foto @ Fort Zeelandia Photos on Instagram