Thanks, works great.

However, is there a more "elegant" way of doing this ? Otherwise I'll end up doing :

exe 'hi Normal gui=' . s:text_style . ' guifg=' . s:text_fg . ' guibg=' . s:text_bg

which may become hard to read.

Ben.

On 2010-04-12 11:07, Jürgen Krämer wrote:
Hi,

Benoit Thomas wrote:
I've done my own color scheme file, which work great. However, when I
tried to use variable instead of color name or color number (#000000) it
doesn't work and I don't know what I'm doing wrong.

For example, I want to do something like this:

" Text color is black.
let s:text = "#000000"
hi Normal guifg=s:text
make this

   exe 'hi Normal guifg=' . s:text

Regards,
Jürgen


--
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to