Bug 1197181
| Summary: | something happened to system's vimrc - colors got fluorescent, unreadable | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | lejeczek <peljasz> | ||||||||
| Component: | vim | Assignee: | Karsten Hopp <karsten> | ||||||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 22 | CC: | crobinso, ignatenko, illtud, jwboyer, karsten, mkolman, moshima.web, pbrobinson, quantum.analyst, sog, yeti | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | 7.4.827-1.fc21 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2015-09-22 08:29:43 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
lejeczek
2015-02-27 17:05:34 UTC
Created attachment 1000530 [details]
Screenshot demonstrating the change
The file on the left is opened with vim-7.4.629-2.fc22.x86_64
The file on the right is opened with vim-7.4.640-4.fc22.x86_64
The left is the expected colors, right side is all bold and wonky.
If this is intentional, can someone provide steps on how to revert to the old behavior?
Created attachment 1000542 [details]
former vimrc
bottom 5 lines are custom
Karsten, do you know if these color changes are expected? FWIW I tried the new vim build in koji, vim-7.4.663-2.fc23. Still broken Created attachment 1017383 [details]
unreadable syntax highlighting in vim
I have updated to F22 Beta with Fedup yesterday and I have similar issues with vim, but made worse in my case as I'm using white background in the terminal.
vim version:
vim-7.4.640-4.fc22
I found a possible workaround - using :set background=light makes the vim colors much more readable. But O think it still does not look like the "old" colors on the screenshot in comment 1. also as a workaround, at least for me it worked, is to use vimrc I attached earlier. Hmm I wrote a comment but apparently didn't submit it... The suggestion of using 'set background=light' does fix things for me, thanks Martin! The change is due to bug 1159920 which added this to /etc/vimrc: " rhbz 1159920 if $COLORTERM=="gnome-terminal" set background=light else set background=dark endif Which even though I'm using gnome-terminal (but not the default color scheme) that ends up setting background=dark, which is what causes the color changes. And the change due to bug 1159920 conflicts with bug 1166428, F22 uses a new vte that don't set COLORTERM anymore. Anyway, because COLORTERM is common, now I add the following to .bashrc: if [ -n "$VTE_VERSION" ] export COLORTERM=gnome-terminal fi Regards. Me too. Thanks for workaround in Comment 9, but please fix! Terrible! none of these last fixes helps me when I use custom terminal profiles, and customization only for colors and fonts This is supposed to be fixed in vim-7.4.827-1.fc22, please update your vim packages and reopen this bugzilla if the colors are still wrong with your terminal. vim-7.4.827-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |