Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim E365: Failed to print Postscript File

Tags:

vim

I don't print from vim often, so I am not sure when this happened.

I cannot print (ha[rdcopy] from vim or gVim.

I get the error

E365: Failed to print Postscript File

I am running on Ubuntu 10.04.

I am looking for ideas on things to configure as well as anyone who has had experience with this problem and might have an answer.

like image 511
octopusgrabbus Avatar asked Dec 14 '11 20:12

octopusgrabbus


2 Answers

Not a lot of clues there...

Starting Vim with verbose turned on gvim -V and doing :hardcopy might produce some clues.

Also, this might also be useful :set printexpr?

You can also check if the regular command lps is working, and whether you have the default printer set up correctly. Another useful command is set pdev=printer_name

like image 143
zzart Avatar answered Sep 20 '22 10:09

zzart


Excellent answer above. A few other pointers I'd like to share after just printing from Vim for the first time:

  • You can find your printer name in Ubuntu by checking the CUPS interface at http://localhost:631/printers/

  • To print without the file name header use: set popt=paper:letter,header:0

  • Finally, you can print using: hardcopy

like image 34
user3751385 Avatar answered Sep 21 '22 10:09

user3751385