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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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