Bug 1262863

Summary: system configuration: env_keep += COLORFGBG for vim
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dkopecek, kdudka, kzak, rsroka, tosykora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-31 12:46:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1262837, 1377316    

Description Pavel Raiskup 2015-09-14 13:44:05 UTC
This is to allow 'vim' correctly detect light/dark terminal to choose
appropriate theme.  Could we please put this into /etc/sudoers?

    Defaults    env_keep += "COLORFGBG"

Comment 1 Jan Kurik 2016-02-24 13:44:55 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 2 Tomas Sykora 2017-03-31 12:46:35 UTC
This setting is up to user, everyone can make their own. Closing this.

Comment 3 Pavel Raiskup 2017-03-31 14:24:25 UTC
> This setting is up to user, everyone can make their own.

No, when we talk about innocent variable which is needed by significant
portion of users, you don't want to bother community with manual
configuration.

However, the correct reasoning is that this is actually not needed for
sudo on Fedora anymore, because modern vim is able to communicate
background color with modern terminal (over terminal control sequences).

So nowadays in Fedora, it is only worth passing COLORFG through ssh
connections to older systems (unfortunately also to RHEL7).