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
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 team...@tracker.debian.org
Compiled by team...@tracker.debian.org
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
$
Thank you,Christian, for replying.
However, the reference provided gives no different response to what I already have configured:
So ... are you saying that was a bug? ... and that it is now fixed in the never version?
OR ... is that a bug in the documentation, and that there
is NO such functionality?
Note that the URL
tries to take me to SourceForge, where it fails:
Also, attempting to use Filezilla to reach, both,
resulted in the same error:
Please note that my computer is operating under
Thank you,
Eric
Your options included portrait, but I thought you wanted landscape?
As I pointed out in the snapshot of the documentation on the site that you sent me, it clearly states that
is the specified method to tell Gvim that landscape mode is the desired print mode.
The bug was, that vim wouldn't set landscape orientation no matter what you configured in printoptions in the generated postscript file.
Since you questioned the "portrait=n" method, is there a new
"landscape=y" method, or is there a different documentation page
that I should be referring to instead of the "vimhelp.org"
reference?
Where did you find that URL?
That is the URL on the documentation page at
under the heading "FROM A PACKAGE".
The ftp mirror has been retired.
Using the information obtained from
is the most recent version (v9.1.1163) uploaded to
a confirmed functional build?
Also, as a bit of feedback, since Unix is not exactly Linux, or vice-versa, if the code is usable for both environments, may I suggest modifying the references (in documentation) to "Unix/Linux" or "Unix (Linux)" to eliminate confusion for people who think too literally about such things?
Thank you for the above, and for your ongoing contributions to
the Gvim project.
I'm using Vim for about 15 years now. Some times Vim terminal, most of the time GUI Vim. In the past years I could configure it, build scripts, build plugins and install third party plugins. Today I have a complete development environment with some simple but powerful functions that fulfills me on any project with any language.
Besides that, it also fulfills me on writing e-mails and technical documents. Using Pandoc and Latex as external tools, gives Vim power beyond any word processor.
For me, it is really great to have Vim as my every day working tool. And not have to use the mouse for anything.
Best regards to all
--
--
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 vim_use+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z8M5z%2BGggP%2Bb3zrn%40256bit.org.
I've compiled and installed the latest version of Gvim downloaded from GitHub (see below).
Regretfully, the problem persists!
So ... how does vimrc tell Gvim to print in landscape mode, since the documented method doesn't work?
Thank you,
Eric
$ gvim --version
VIM - Vi IMproved
9.1 (2024 Jan 02, compiled Mar 1 2025 18:09:54)
Included patches: 1-1163
Compiled by ericthered@OasisMega1
Huge version with GTK2 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 +xattr
+dnd +mouseshape +spell
-xfontset
-ebcdic +mouse_dec +startuptime +xim
+emacs_tags -mouse_gpm +statusline +xpm
+eval -mouse_jsbterm -sun_workshop
+xsmp_interact
+ex_extra +mouse_netterm +syntax
+xterm_clipboard
+extra_search +mouse_sgr +tag_binary
-xterm_save
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
3rd user gvimrc file: "~/.config/vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-pthread -I/usr/include/gtk-2.0
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/libmount
-I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/harfbuzz
-I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid
-I/usr/include/freetype2 -I/usr/include/libpng16 -O2
-fno-strength-reduce -Wall -Wno-deprecated-declarations
-D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0
-lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lSM
-lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lselinux
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:
I was sure I had seen examples with the quotes, and that is why I was using them. Now, I know differently!
Eric
Thank you, Christian.
I appreciate your willingness to volunteer a different approach, but in this instance I prefer the direct route.
For more complex situations, I might reconsider that approach.
Eric