Red Hat Bugzilla – Bug 1262863
system configuration: env_keep += COLORFGBG for vim
Last modified: 2017-03-31 10:24:25 EDT
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"
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:
This setting is up to user, everyone can make their own. Closing this.
> 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
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).