Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Saturday, 26 March 2011

Vim to HTML

I just discovered a feature of Vim that I'm not entirely sure is useful, but it's certainly interesting:

:TOhtml

It outputs the current file as HTML, including syntax highlighting! To see what I mean, this is the output when run on the main JavaScript file for my piXY application. Set your browser's monospace font to Consolas and what you'll see is pretty much exactly what I see in MacVim (as seen in the screenshot in the previous post).

Monday, 21 March 2011

Big Code

A big monitor can be a big productivity boost.


(click to embiggen, 647KB)

Also, Vim is so great. I've been using it for about 6 months and I'm still learning new things. Like, just the other day I found out you can do diB to delete in the current code block. My .vimrc is 129 lines long now!