Vim E365: Failed to Print Postscript File

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

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

I get an error

E365: Failed to print Postscript File 

I work on Ubuntu 10.04.

I am looking for ideas on settings, as well as for those who had experience with this problem and could get an answer.

+4
source share
3 answers

Not many clues there ...

Starting Vim with the verbose inclusion of gvim -V and executing :hardcopy may give some hints.

In addition, it may also be useful :set printexpr?

You can also check if the regular lps command lps and if the default printer is configured correctly. Another useful command: set pdev=printer_name

+6
source

Great answer above. A few other pointers that I would like to share only after printing with Vim for the first time:

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

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

  • Finally, you can print using: hardcopy

+2
source

I had the same error when two printers were configured on my system without default settings. The default installation solved the problem.

0
source

Source: https://habr.com/ru/post/1386398/


All Articles