You are not logged in.

#1 2010-10-26 14:27:27

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

zenburn colours differ for vim in rxvt-unicode-256color

Here is a screen shot of zenburn, rxvt-unicode on the left, rxvt-unicode-256color on the right:

tNXhsdw

Notice zenburn looks much more like it should.

My question is, why is the background slightly darker in rxvt-unicode-256color version? Specifically, it is #3A3A3A, rather than #3F3F3F (see the border where it differs to the settings in .Xdefaults).

Last edited by tlvince (2010-10-27 00:07:30)

Offline

#2 2010-10-26 17:14:27

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: zenburn colours differ for vim in rxvt-unicode-256color

Zenburn is meant for gvim, but it has some 256 color terminal support too.

There's no support for anything less than 256 color terms, so what you see on the left isn't really zenburn, it's just some of your default 16 terminal colors that zenburn doesn't override.

#3f3f3f is the correct background color, but it available among the default 256 colors, so it uses an approximation. The other colors are also approximate.

If you want zenburn to use your terminal background instead of it's own, edit the zenburn.vim file and change

hi Normal ctermfg=188 ctermbg=237

to:

hi Normal ctermfg=188 ctermbg=500

color "500" isn't available, so it reverts to a transparent background (that's what happens in normal rxvt-unicode, for almost all the colors).

If you want the exact zenburn colors, use should use gvim (with "set guioptions=aic" it's basically identical to the console version, but with clipboard buffer support and a nicer cursor).

Last edited by thestinger (2010-10-26 17:15:17)

Offline

#3 2010-10-27 11:05:15

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: zenburn colours differ for vim in rxvt-unicode-256color

Hack the scheme to not use colour 0-15, and not to use the default terminal bg. (as said), that way the colour will be the same no matter what you do to your termcolours.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB