sniffnoy: (Dead face)
[personal profile] sniffnoy
How to get gvim to print multiple copies of something?

In Windows there was a dialog box. In Linux, it just runs printexpr and ends up printing a single copy. I read through the Vim printing documentation, and there wasn't any option for number of copies. What the hell is the point of having a collation option when you don't have a number of copies option?!

Finally went and learned how "printexpr" works. I see, it invokes lpr on the thing. And lpr has number of copies option. So I just need to modify this string so it passes "-# 12" (or however many copies I want) to lpr.

...and it didn't work. It still only printed one.

But it gets crazier than that. I actually tried setting the system printing options to default to printing 12 (actually 8 by that point) copies of something, and it still only printed one.

The only other suggestion I've been able to find on the web was the suggestion that if you're using KDE, you could modify printexpr to use kprinter instead.

Any help, guys?

-Harry

Date: 2008-10-08 12:14 am (UTC)
From: [identity profile] grenadier32.livejournal.com
Heh. I still don't understand printing on the command line. I just print text files with gedit. :-P

When you figure it out, though, let me know--doesn't GNOME have some kind of printing framework?

Date: 2008-10-08 12:28 am (UTC)
From: [identity profile] sniffnoy.livejournal.com
That's what I ultimately ended up doing, actually, but it seems to use different margins and not fit as much on a page, and I don't see a way to modify that.

February 2026

S M T W T F S
1234567
891011121314
15161718192021
22 23 2425262728
Page generated Mar. 9th, 2026 01:46 pm
Powered by Dreamwidth Studios