Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

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 > file.ps

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.