Monday, March 3, 2025

Re: Getting Gvim print button to print in landscape mode

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    

No comments: