Monday, January 28, 2013

Re: TOhtml reverses text/background color for default colorscheme

On Jan 28, 4:02 pm, Ben Fritz <fritzophre...@gmail.com> wrote:
> ...my Windows XP 64-bit machine, running 7.3.762 gvim
>
> gvim -N -u NONE -i NONE -U NONE
> :runtime plugin/tohtml.vim
> (...enter some text...)
> :colorscheme default
> :TOhtml
>
> For me, this gives black text on a white background.

<...snip...>

>> However, the closed folds
>> and the text showing in the closed folds are the right color. Has
>> anyone else experienced this on Windows 7 (64-bit)?
>> Interestingly enough, gvim compiled for Cygwin and its X11 renders
>> to HTML using the proper colours. I provide the version info for
>> both Windows & Cygwin/X11 versions below.
>>
>> Windows version:
>> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2010 17:59:02)
>> ------------------------------------------------------------------
>> MS-Windows 32-bit GUI version with OLE support
>> Included patches: 1-46
>> [Snip]
>> ==================================================================
>> Cygwin/X11 version:
>> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 31 2012 02:25:38)
>> ------------------------------------------------------------------
>> Included patches: 1-646
>> [Snip]
>> ==================================================================
>
> It looks like your cygwin Vim is much more recent, and your TOhtml
> plugin is therefore probably also much more recent.
>
> Can you try installing a more recent native Vim to see what happens?
> If this does not work or is not an option, can you post a file as
> example output of the script?
>
> There are multiple ways to get an up-to-date Vim on Windows, my
> preferred method being the 32-bit "Vim without Cream" installer from
> the Cream project.
> See http://vim.wikia.com/wiki/Where_to_download_Vimorhttp://sourceforge.net/projects/cream/files

That *is* odd. I could have sworn that I downloaded the built-in
executable installer of the Windows from vim.org in fall 2012.

I actually tried your virgin gvim command and it did not create
erroneous HTML colors. I then tried gvim without the virgin swithes
(I know, I'm probably abusing the term "virgin") and failed to re-
create the problem. I even turned on folds and turned on search
highlighting in case that was the case. Still no erroneous colours.

It looks like I saved myself tons of debugging time. Thanks!

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group, send email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: