Getting Gvim print button to print in landscape mode

Eric Marceau <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
Hello,

I've tried to set my vimrc parameters for landscape mode.  Here is what 
I have in my file:

    "###
    "######    Hardcopy Options
    "######   See:
    https://vimdoc.sourceforge.net/htmldoc/print.html#print-options
    "######   See:
    https://vimdoc.sourceforge.net/htmldoc/options.html#'statusline' for
    header format
    "###

    "###    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"*
    "set printfont="Courier:h15"
    set printfont="SourceSans:h15"
    "#set printheader="%t%=%{strftime('%c')}%=Page %N"
    set printheader="%<%f%=Page %N"

The line in *bold* is, in my view, set to force landscape, but that 
never happens.  As you can see, I tried many variations before 
eliminating everything, but the orientation for the *printoptions* variable.

Can someone tell me

  * *why* not getting what I want with what is currently in the vimrc?
  * what I need to *change* to make a vimrc-specified setting control
    the print format to give me what I want?


Thank you.


$ vim --version

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 03 2025 11:54:38)
Included patches: 1-16, 647, 17-579, 1969, 580-647, 678, 648-1848, 4975, 
5016, 5023, 5072, 2068, 1849-1854, 1857, 1855-1857, 1331, 1858, 
1858-1859, 1873, 1860-1969, 1992, 1970-1992, 2010, 1993-2068, 2106, 
2069-2106, 2108, 2107-2109, 2109-3995, 4563, 4646, 4774, 4895, 4899, 
4901, 4919, 213, 1840, 1846-1847, 2110-2112, 2121
Modified by [email protected]
Compiled by [email protected]
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt -tag_any_white
+arabic            +find_in_path      +mouse_xterm       +tcl
+autocmd           +float             +multi_byte +termguicolors
+autochdir         +folding           +multi_lang +terminal
-autoservername    -footer            -mzscheme +terminfo
+balloon_eval      +fork()            +netbeans_intg +termresponse
+balloon_eval_term +gettext           +num64 +textobjects
+browse            -hangul_input      +packages +textprop
++builtin_terms    +iconv             +path_extra +timers
+byte_offset       +insert_expand     +perl +title
+channel           +ipv6              +persistent_undo +toolbar
+cindent           +job               +popupwin +user_commands
+clientserver      +jumplist          +postscript +vartabs
+clipboard         +keymap            +printer +vertsplit
+cmdline_compl     +lambda            +profile +vim9script
+cmdline_hist      +langmap           -python +viminfo
+cmdline_info      +libcall           +python3 +virtualedit
+comments          +linebreak         +quickfix +visual
+conceal           +lispindent        +reltime +visualextra
+cryptv            +listcmds          +rightleft +vreplace
+cscope            +localmap          +ruby +wildignore
+cursorbind        +lua               +scrollbind +wildmenu
+cursorshape       +menu              +signs +windows
+dialog_con_gui    +mksession         +smartindent +writebackup
+diff              +modify_fname      +sodium            +X11
+digraphs          +mouse             +sound -xfontset
+dnd               +mouseshape        +spell             +xim
-ebcdic            +mouse_dec         +startuptime       +xpm
+emacs_tags        +mouse_gpm         +statusline +xsmp_interact
+eval              -mouse_jsbterm     -sun_workshop +xterm_clipboard
+ex_extra          +mouse_netterm     +syntax -xterm_save
+extra_search      +mouse_sgr         +tag_binary
-farsi             -mouse_sysmouse    -tag_old_static
    system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
  2nd user vimrc file: "~/.vim/vimrc"
       user exrc file: "$HOME/.exrc"
   system gvimrc file: "$VIM/gvimrc"
     user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
        defaults file: "$VIMRUNTIME/defaults.vim"
     system menu file: "$VIMRUNTIME/menu.vim"
   fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread 
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 
-I/usr/include/gio-unix-2.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 
-I/usr/include/uuid -I/usr/include/freetype2 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 
-I/usr/include/x86_64-linux-gnu -I/usr/include/libmount 
-I/usr/include/blkid -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -g -O2 
-ffile-prefix-map=/build/vim-q7BeVl/vim-8.2.3995=. -flto=auto 
-ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong 
-Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now 
-fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E 
-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto 
-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lgtk-3 -lgdk-3 
-lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject 
-lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE 
-lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lselinux -lcanberra 
-lsodium -lacl -lattr -lgpm -L/usr/lib -llua5.2 -Wl,-E 
-fstack-protector-strong -L/usr/local/lib 
-L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl -ldl -lm -lpthread 
-lcrypt -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 
-lcrypt -ldl -lm -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz 
-lpthread -lm -lruby-3.0 -lm -L/usr/lib

$

-- 
-- 
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/2723495e-770e-4479-8a1b-83ed7682fe21%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.