GUI Options and Command Synopsis

Table 13-3 summarizes the commands and options specially associated with gvim. These are added to Vim when it is compiled with GUI support, and they take effect when it is invoked as gvim or vim -g.

Table 13-3. gvim-specific options
Command or optionTypeDescription
guicursor OptionSettings for cursor shape and blinking
guifont OptionNames of single-byte fonts to be used
guifontset OptionNames of multi-byte fonts to be used
guifontwide OptionList of font names for double-wide characters
guiheadroom OptionNumber of pixels to leave for window decorations
guioptions OptionWhich components and options are used
guipty OptionUse a pseudo-tty for “:!” commands
guitablabelOptionCustom label for a tab page
guitabtooltip OptionCustom tooltip for a tab page
toolbarOptionItems to show in the toolbar
-gOptionStart the GUI (which also allows the other options)
-U gvimrcOptionUse gvim startup file, named gvimrc or something similar, when starting the GUI
:guiCommandStart the GUI (on Unix-like systems only)
:gui filename...CommandStart the GUI and edit the specified files
:menuCommandList all menus
:menu menupathCommandList menus starting with menupath
:menu menupath actionCommandAdd menu menupath, to perform action action
:menu n menupath actionCommandAdd menu menupath with positional priority of n
:menu ToolBar.toolbarname actionCommandAdd toolbar item toolbarname to perform action action
:tmenu menupath textCommandCreate tooltip for menu item menupath with text of text
:unmenu ...

Get Learning the vi and Vim Editors, 7th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.