Re: Getting Gvim print button to print in landscape mode

Eric Marceau <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
Thank you, Jürgen!


Your explanation about the quotes was *very* helpful. *Very* grateful 
for that!  Your response demonstrates a model of interaction which 
others could emulate to arrive at solutions faster, with less forum "chaff"!

I now have it working as I desired, using:

  * set
    printoptions=paper:letter,portrait:n,duplex:off,number:y,syntax:y,wrap:y,left:2pc,right:2pc,top:2pc,bottom:2pc

I was sure I had seen examples with the quotes, and that is why I was 
using them.  Now, I know differently!


Eric


On 2025-03-03 01:49, 'Jürgen Krämer' via vim_use wrote:
>
> Christian Brabandt schrieb am 01.03.2025 um 17:36:
>> On Fri, 28 Feb 2025, Eric Marceau wrote:
>>>      │ "###                                                                                                                       │
>>>      │                                                                                                                            │
>>>      │ "###    Specify font for printout                                                                                          │
>>>      │ "set printmbcharset="default"                                                                                              │
>>>      │ "set printoptions="paper:letter,portrait:n,duplex:off,left:5pc,right:5pc,top:5pc,bottom:5pc,syntax:n,wrap:y"               │
>>>      │ "set printoptions="portrait:n,duplex:off,wrap:y,syntax:n"                                                                  │
>>>      │ "set printoptions="portrait:n,numbers:y,wrap:y,syntax:n,left:5pc,right:5pc,top:5pc,bottom:5pc"                             │
>>>      │ "set printoptions="portrait:n,numbers:y,wrap:y,syntax:y"                                                                   │
>>>      │ set printoptions="portrait:n"                                                                                              │
>>          Here you are not setting landscape mode.
> the bigger problem with this line -- and all the other lines -- is that there are no values
> assigned to the options. The parts on the right side of the equal sign are comments, not
> strings. As a result all those "values" would clear the respective options.
>
> Don't use double quotes around option values. And neither use single quote; they wouldn't
> do what you'd expect either. String options don't need any quote symbol around their values.
> And if you need to include a space in the option's value escape it with a backslash.
>
> Regards,
> Jürgen
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/1e8557a6-f5d4-4530-960c-86bb82f9b6c5%40gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.