You are not logged in.

#1 2007-08-16 01:15:51

print
Member
Registered: 2007-02-27
Posts: 174

E365: Failed to print PostScript file (using :hardcopy in VIM)

Wondering why when I try to do a hardcopy, I get this error message. lpr printing works fine

echo "hello world" | lpr -P bjork

does as expected..


TIA,

print


% whereis whatis whence which whoami whois who

Offline

#2 2007-08-16 15:03:42

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: E365: Failed to print PostScript file (using :hardcopy in VIM)

What does:

:set printexpr?

tell you in Vim?

Offline

#3 2007-08-17 13:01:32

print
Member
Registered: 2007-02-27
Posts: 174

Re: E365: Failed to print PostScript file (using :hardcopy in VIM)

printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error

% whereis whatis whence which whoami whois who

Offline

#4 2007-08-17 13:02:48

print
Member
Registered: 2007-02-27
Posts: 174

Re: E365: Failed to print PostScript file (using :hardcopy in VIM)

Forgot to mention that the error message I get is,

E365: Failed to print PostScript file

This is what vim -V gives me

:hardcopy
Searching for "print/prolog.ps" in "/root/.vim,/usr/share/vim,/usr/share/vim,/usr/share/vim/after,/root/.vim/after"
Searching for "/root/.vim/print/prolog.ps"
Searching for "/usr/share/vim/print/prolog.ps"
Searching for "print/latin1.ps" in "/root/.vim,/usr/share/vim,/usr/share/vim,/usr/share/vim/after,/root/.vim/after"
Searching for "/root/.vim/print/latin1.ps"
Sending to printer...
Calling shell to execute: "(lpr /tmp/v364576/0) >/tmp/v364576/1 2>&1"

E365: Failed to print PostScript file
Press ENTER or type command to continue

Last edited by print (2007-08-17 13:03:56)


% whereis whatis whence which whoami whois who

Offline

#5 2007-08-17 13:08:15

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: E365: Failed to print PostScript file (using :hardcopy in VIM)

So does plain 'lpr' work for you? If not, you might want to try setting up the printdevice variable in Vim to be bjork.

Offline

#6 2007-08-17 13:17:18

print
Member
Registered: 2007-02-27
Posts: 174

Re: E365: Failed to print PostScript file (using :hardcopy in VIM)

Yes, plain lpr works.

So does printing, after this:

set pdev=bjork
:hardcopy

Thanks!
print


% whereis whatis whence which whoami whois who

Offline

Board footer

Powered by FluxBB