On Tue, Feb 15, 2011 at 8:00 PM, Jeroen Budts <[email protected]> wrote: > 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.
Here transparent mean "use the previously defined background", not real transparent. If you use guibg=NONE, this means the background equals default text guibg. There's no way to make guibg real transparent. If you use ctermbg=NONE, this means the background equals background of terminal, and you will got real transparency only if you can set your terminal emulator to a trasnparent background. hope that helps. -- 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
