Dec 4 2008

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:

Ruby Code in Vim

Ruby Code in Vim

To a html file like this:

Ruby Code in HTML

Ruby Code in HTML


Jul 1 2008

Block Mode Editting

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

Vim Block Visual Mode


Jul 1 2008

Setting Up Unix Profiles In A Diverse Environment

I’ve recently made changes to my bash profile after getting sick and tired of managing multiple environments in one profile.

› Continue reading