How do I get vim to print?
I'm running Ubuntu Jaunty and I've had a look at Emacs and Vim to start my C++ coding attempt with, (looks like Vim is the one for me). Problem is that it won't print although all other programs are fine.
Vim gives me 'E365 failed to print postscript file' Please help, is there a simple fix? |
Can you print from the command line?
Code:
lp file.c |
No I can't, I just get:-
lp: Error - no default destination available I take it I need to set the printer, I would have thought that because it works for everything else that it would work from the shell, clearly not, how do I set the printer? |
Below allows you to print from command line
Code:
lp -d HP_LaserJet_P1005 main.c Below sets the default printer (not sure if it's persistent between reboots, not tested) Code:
lpoptions -d HP_LaserJet_P1005 Code:
lpr main.c |
Success
Thanks very much, printer now working from Vim :)
|
Great. Please mark your thread as 'solved' using the tread tools just above the first post.
|
All times are GMT -5. The time now is 06:45 PM. |