Bug 1387142

Summary: Bad contrast in TERM=xterm-256color terminal in vimdiff, with dark background
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: vimAssignee: Leigh Griffin <lgriffin>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: moshima.web, zdohnal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
Screen with "xterm256-color"
none
Screen with TERM=xterm none

Description Pavel Raiskup 2016-10-20 08:57:45 UTC
Created attachment 1212386 [details]
Screen with "xterm256-color"

On the other hand, TERM=xterm has much more readable diffs.

See the attachments.

Comment 1 Pavel Raiskup 2016-10-20 08:58:55 UTC
Created attachment 1212387 [details]
Screen with TERM=xterm

Comment 2 Pavel Raiskup 2016-10-20 09:04:26 UTC
I'm not sure.  There are probably two issues:

1. the red "highlight" color is too shiny with xterm256-color
2. the contrast depends on the actual font color, which depends on file type
and thus syntax colorization plugin .. probably highlighted text should not
use different colors in fonts

Please, either fix 1, or 2, or both -> but the actual colors are unreadable;
and both gnome-terminal and konsole have TERM=xterm256-color by default.

Comment 3 Pavel Raiskup 2016-10-20 09:07:17 UTC
Reproducer for example:
$ vim -d /etc/mock/fedora-rawhide-{x86_64,i386}.cfg