Re: using :ha under linux

2006-11-17 Thread Marlin Unruh

Benji Fisher wrote:

On Thu, Nov 16, 2006 at 12:05:31PM -0700, Marlin Unruh wrote:
[snip]

I can print to the printer from OpenOffice or any other program but Vim.

I get E365: Failed to print PostScript File.

I can't remember what I did once awhile back and it worked. I entered 
something like :set printdevice=lp0 and it worked. I checked the cmd 
history list but I can't find what cmd I used that time.


 Since you got an error message, read

:help E365

This one is related to the 'printexpr' option, so what does

:verbose set printexpr?

tell you?

HTH --Benji Fisher



Benji,

:verbose set printexpr? give the following, all in one line.

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


Is this any help?

--
 Marlin


Re: using :ha under linux

2006-11-17 Thread A.J.Mechelynck

Marlin Unruh wrote:
[...]

Benji,

:verbose set printexpr? give the following, all in one line.

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


Is this any help?



There is an unmatched parenthesis near the end of that expression. Other than 
that, I'm not sure.



Best regards,
Tony.


using :ha under linux

2006-11-16 Thread Marlin Unruh

Hi,

In Linux how do I configure Vim to print a hard copy?
Please include syntax example.

I am running Ubuntu and the printer is named Laserjet-4 on LPT #1.

I located the info once and did this but now it eludes me.

Thank You!

--
 Marlin
:wa


Re: using :ha under linux

2006-11-16 Thread A.J.Mechelynck

Marlin Unruh wrote:

Hi,

In Linux how do I configure Vim to print a hard copy?
Please include syntax example.

I am running Ubuntu and the printer is named Laserjet-4 on LPT #1.

I located the info once and did this but now it eludes me.

Thank You!



What Windows calls LPT1 is usually called something else on Linux -- maybe
/dev/lp0 or something.

On systems other than Windows, Vim prints in PostScript format. If your
printer doesn't understand PostScript, you need some program like ghostscript
to translate the PostScript file to whatever it is that your printer can use.

Of course, your system must also recognise your printer and be able to
interface with it. If no program is able to print on your LJ-4, don't expect
that Vim will be.

See :help printer.txt.


Best regards,
Tony.