Syntax Highlighting with vim for Keynote

Syntax Highlighting code in a presentation can be a boring ordeal. Vim already supports the :toHTML command that outputs the code to HTML. But that file has to be saved, opened in a browser, copied to the clipboard and pasted in Keynote to get the same syntax highlighting. But this is too cumbersome. I wanted something that I can visually highlight and run a command against it to copy it as RTF to the clipboard and then paste the code into Keynote. I know that the cool kids using TextMate have Dr Nic’s Copy as RTF bundle . But I wanted it to work with the editor that I love. So I wrote the rtf-highlight vim plugin. It works with the “highlight” ¬†command line tool. If you like it, fork it and submit patches.

BTW, this works for OpenOffice as well.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.