Vim: Turn code into HTML
Maciej on his blog talks about an interesting feature in vim.
You can save highlighted source to a HTML file.
:runtime! syntax/2html.vim
So you can go from something like this:
To a html file like this:
Maciej on his blog talks about an interesting feature in vim.
You can save highlighted source to a HTML file.
:runtime! syntax/2html.vim
So you can go from something like this:
To a html file like this:
I’ve been a long time VI user. Not a vi-ninja but definitely comfortable using the vi methodology.
Having used Block Mode editting in Textmate, I really needed to find a way to do the same in vi.
Volia!
Ctrl-V with ‘c’, ‘I’, and ‘A’ are the magic commands in vi
I’ve recently made changes to my bash profile after getting sick and tired of managing multiple environments in one profile.