On 03/12/2012 04:24 PM, Ben Fritz wrote:
>
> As the maintainer of TOhtml, I'm interested why -E "isn't happy with
-cTOhtml". If I can reproduce your problem in the latest version I'll
fix it soon, this is supposed to work.
>
> For me on my Windows XP system, the following appears to work:
>
> gvim -E temp\test.vim -c TOhtml
>
> At least, it runs the conversion, and raises no errors. I didn't
check the output since I don't know what to look for.
>
> What version of Vim and TOhtml do you have? You can check the TOhtml
version either by viewing the plugin/tohtml.vim file, or by looking at
the value of the g:loaded_2html_plugin variable.
>
I don't know whats the problem here as I thought TOhtml would do the
same thing as run syntax/2html.vim.
If I run vim by:
vim foo.c -Es +TOhtml +"w! foo.html"
I get a plaintext foo.html, no HTML at all with an exit code 1. If I
change +TOhtml to +"run! syntax/2html.vim" it works perfectly - exit
code 0 and foo.html looks just like expected. As I figured out now it's
not -E it's the combination of -E and -s, as soon as I remove -s it
works with both versions.
The vim and 2html version I use are the newest versions packaged for
fedora 16 (x86-64). Vim version is 7.3 and 2html version is "vim7.3_v6"
from August, 2010 ("Last Change: 2010 Aug 12").
Best regards,
Stefan
--
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