On Tuesday, March 10, 2015 at 4:06:08 AM UTC-5, g.robin3 wrote:
> 
> Thanks for your reply.
> This is not really a problem because a perl one-liner does the trick.
> I asked this question because if vim could do the job, why not enjoy it :)
> 

It is not built-in to 2html (or :TOhtml) but you could easily write your own 
wrapper command to do whatever substitution you like.

But as ZyX asks, why do you need this? The :TOhtml conversion automatically 
detects the file encoding and sets the generated HTML to match, even including 
an appropriate <meta> tag to alert browsers. Thus you can include the special 
characters directly, you don't need to encode them.

You can even specify the encoding you'd like with g:html_use_encoding, if there 
is one you'd like to always use, or you can override the automatic detection 
for a few encodings only. See :help TOhtml-encoding.

-- 
-- 
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 and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to