Vim to Postscript

Is your first time on TechnoSNACK? Subscribe our feeds!  


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.

SOURCE: http://dailyvim.blogspot.com/

Discussion Area - Leave a Comment