I've got a couple of files loaded in Vim, but I wanted to post the contents with the colouring that Vim is providing. Short of print-screen, is there a way to do this? Ideal would be a copy/paste as HTML, but I suspect I'm going to be disappointed.
You just need to enter the command
:TOhtml
Alongside with built-in :TOhtml
which was already mentioned, you can try my plugin which is more customizable: format.vim. Its advantages over 2html are explained on the plugin page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With