Hi again!
Well, in my case "f", "ctrl-G" etc. reports the lines the file has
plus a percentage information for the actual cursor position. The
latter allows to calculate the actual line.
As for the 2nd issue, I tried ":hardcopy ~/test.ps", ":hardcopy >
~/test.ps" etc., but my system does not dump it in test.ps (and sends
it instead immediatelly to the default printer). Now way to stop this
stupidity?
Regards,
Walter
Quoting Ben Schmidt <[EMAIL PROTECTED]>:
>
>> thanks for the try. "f", "ctrl-G" etc. determines how many lines the
>> file has, not the actual line.
>
> Maybe some option makes them less verbose. But I didn't think so. For me
> each of them shows 'Line x of xxx' and 'x' is the line my cursor is
> currently on. What does yours show?
>
>> As for the 2nd question, I'm stuck. The help for "pexpr-option" refers
>> to "cmdarg" as part of the first step, that is, directing "lpr" to a
>> sort of save-as-file. Now, the help for "cmdarg" reads:
>>
>> "When printing a ps file with 'hardcopy' this is the argument for the
>> 'hardcopy' command. This can be used in 'printexpr'."
>>
>> How?
>
> Perhaps something like this for printexpr:
>
> system('mv ' . v:fname_in . ' ' . v:cmdarg) + v:shell_error
>
> I'd set it using :let &printexpr="system(...)" rather than :set because
> you don't have to escape all the spaces then.
>
> It's pretty insecure as it stands, not quoting v:cmdarg or escaping
> special characters or anything but just passing it to the shell, but it
> seems to work for me, at least with:
>
> :hardcopy ~/test.ps
>
> Ben.
>
>
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---