Bug 1262863 - system configuration: env_keep += COLORFGBG for vim
Summary: system configuration: env_keep += COLORFGBG for vim
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: sudo
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Kopeček
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1262837 1377316
TreeView+ depends on / blocked
 
Reported: 2015-09-14 13:44 UTC by Pavel Raiskup
Modified: 2017-03-31 14:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-31 12:46:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.