Monday, October 20, 2008

Vim to Postscript

Thanks to Karl for the following tip:

Here's a little Vim trick that might be of interest. If you're on a non-Windows machine, you can make the Vim hardcopy command print to a postscript file instead of a real printer. Try issue the following:

:hardcopy >

You'll get a postscript output of the file you're currently editing.
From there you can view the postscript file with gv or convert it to a pdf with ps2pdf.

1 comment:

Anonymous said...

Hi, I just found your blog. I googled for "daily vim hints" and stumbled across your blog.

I'll be a frequent visitor from now on. :)