Igor Dvorkin wrote: > Many windows apps support a clipboard pasting format of HTML. This is > how you can copy code in Visual Studio 2005 and paste it into outlook > and see syntax highlighting. > > I recommend something similar be done for VIM. Today, we have toHTML, > that's reasonable, but ideally we'd able to yank as HTML. I've created > a patch that can yank HTML to the clipboard as type HTML. I don't > think this patch should be submitted, instead used by the person > considering this feature request. > > > Ideally this patch will be extended to allow the user to decide to : > > a) yank text , convert it to HTML, and have show up as type HTML. > b) yank HTML, and have it have it show up as type HTML > c) yank text, and have it show up as HTML > > My patch only implements 'b' > > Thoughts?
Your patch appears to mostly change indent... With a simple script you can invoke 2html.vim on highlighted text and yank the result into the clipboard. What is the added value of marking it as HTML on the clipboard? -- hundred-and-one symptoms of being an internet addict: 86. E-mail Deficiency Depression (EDD) forces you to e-mail yourself. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///