Tuesday, February 15, 2011

highlight with transparent background

Hi,

I'm trying to add some color to my statusline. I'm doing this by
defining the User1 highlight and adding %1* to my statusline. This
works, but I can't figure out how i can specify a transparent
background for the User1 highlight. The reason why i want a
transparent background is because my preferred colorscheme (molokai)
uses two different colors for the statusline (StatusLine and
StatusLineNC), and i also change the color of the statusline to a
different color when i'm in insert mode (with an autocommand).

I found under :help highlight-guibg that setting guibg to NONE should
result in a transparent background, but when i try this gvim always
uses the background color of the default text as the guibg. Is it
somehow possible to make vim always use the current background color
for the User1 highlight?

I'm fine with a solution which only works in gvim if that makes a
difference.

thx for any answers!
Jeroen


--
website: http://budts.be/ - twitter: @teranex
___________________________________
Registered Linux User #482240 - GetFirefox.com - ubuntu.com

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: