You are not logged in.
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,
% whereis whatis whence which whoami whois who
Offline
What does:
:set printexpr?
tell you in Vim?
Offline
printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error
% whereis whatis whence which whoami whois who
Offline
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
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
Yes, plain lpr works.
So does printing, after this:
set pdev=bjork
:hardcopy
Thanks!
print
% whereis whatis whence which whoami whois who
Offline