Hi all!

In color xterm color 1 for is #0c0000 (red), but in dos32 it is #00000c
(blue). (Strictly speaking, VGA standard palette is different, but xterm
colors are good enough approximation in practice). This makes very hard
to write portable scripts dealing with colors. Does a better way to
write a such a script exist other than:

if has("dos32")
 let color1 = "#00000c"
else
 let color1 = "#0c0000"
endif

? By the way, 2html.vim does not perform this test and colors of HTML
generated in dos32 are wrong.

--
Cyril Slobin <[EMAIL PROTECTED]> `When I use a word,' Humpty Dumpty said,
<http://45.free.net/~slobin> `it means just what I choose it to mean'

Reply via email to