> configurations but i couldn't get it to work. Maybe it has something to do with
> the Molokai colorscheme i'm currently using. One strange thing about that (or
> maybe i simply don't understand it) is it's definition for StatusLine:
>
> hi StatusLine guifg=#455354 guibg=fg
> hi StatusLineNC guifg=#808080 guibg=#080808
>
> It defines the background as 'fg'. When i use fg in User1 it simply is white
> (which is indeed the default color of the normal text). I also tried the real
> color (#465457) as bg for User1 for your solution, but then User1 has always that
> background color (bot in StatusLine and StatusLineNC).
> I'll use a background color for now, as this seems a lot more complex as it should
> be...
This was really annoying me, so I had a look at it.
And yes, it's to do with the molokai colorscheme which is arguably
somewhat broken.
If you look at your statusline and those foreground and background
colours listed above, they are clearly wrong. They are 'backwards'. The
foreground is the background and viceversa. This is because, I think,
molokai hasn't cleared out the highlight groups, and the 'reverse'
setting of the defaults are still there. You can see this if you just
issue :hi and look for StatusLine and StatusLineNC.
The way to get it to work is to do the same thing with your User1
highlight. E.g.:
:hi User1 gui=reverse guifg=#455354 guibg=Red
This would be easier and more sensible if molokai defined the StatusLine
properly, by including a gui=NONE or gui=bold attribute, or doing :hi
clear StatusLine before defining the fg and bg as desired. Relying on
the default 'reverse' attribute of StatusLine is confusing.
Ben.
--
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:
Post a Comment