Gareth R. White

Making videogames for cash

Bluefish Printing

Annoying Bluefish doesn’t have a built-in print command.
I use vim to create a PS, then ps2pdf to convert that to a PDF, then print that file:

vim "+ha > '%s.ps'" +q '%s' 2>/dev/null && ps2pdf '%s.ps' && lpr '%s.pdf'

[EDIT: 2008-12-03] It’s just occurred to me that this probably isn’t necessary; I just loaded a file into vim, then executed “:ha” which printed a message something like “Print job sent”, and sure enough the syntax-highlighted source file popped out of the printer.

Good to know.

21 November, 2008 - Posted by garethrwhite | Geek | | No Comments Yet

No comments yet.

Leave a comment