You are not logged in.

#1 2009-05-03 15:51:10

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

[solved] Transparent vim in pseudo-transp. urxvt?

Hi,

currently I'm using pseudo-transparency in rxvt-unicode-256color.

Can I have this transparency in vim too? When I start vim the background is set to black.

My .Xdefaults:

URxvt.saveLines: 1000
URxvt.scrollBar: false
urxvt*depth: 24
urxvt*shading: 80
URxvt.inheritPixmap: true
URxvt.secondaryScroll: true
URxvt.foreground: white
URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=12
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 1
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]

Thanks in advance

Last edited by Barghest (2009-05-03 17:15:00)

Offline

#2 2009-05-03 16:47:47

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: [solved] Transparent vim in pseudo-transp. urxvt?

You have to modify your colors file. Search for "hi Normal" and change the ctermbg to "NONE".

Offline

#3 2009-05-03 17:13:26

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: [solved] Transparent vim in pseudo-transp. urxvt?

Thanks bluewind,

I found out that the reason was this line:

call <SID>X("Normal", "cccccc", "000000", "")

I commented it out and added a new line with ctermbg=NONE.

I guess I could have entered NONE also in the other line? What does it stand for?

Offline

#4 2009-05-03 17:29:07

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: [solved] Transparent vim in pseudo-transp. urxvt?

Barghest wrote:

Thanks bluewind,

I found out that the reason was this line:

call <SID>X("Normal", "cccccc", "000000", "")

I commented it out and added a new line with ctermbg=NONE.

I guess I could have entered NONE also in the other line? What does it stand for?

It's a function to set colors. (search for "fun <SID>X" in the file to see what it does)

call <SID>X("Normal", "cccccc", "NONE", "")

should also remove the background.

Offline

Board footer

Powered by FluxBB