Vim Recall繁體中文

Begin the GUI

:gui

Example

Normal 0 / 2

Begin the GUI.

Display

Frontend
terminal
Process
foreground
Before & after

Before

Display

Frontend
terminal
Process
foreground

After

Display

Frontend
GUI window
Process
foreground (-f; no fork)
Menu bar
available

Documentation-backed illustration. Unix Vim built with GUI and +menu support, a working graphical display, prepared menus with guioptions containing m, and successful GUI startup without gvimrc or GUIEnter actions changing the illustrated session. :gui -f starts the GUI frontend for this same editing session and keeps it in the foreground. Primary help: :gui.

Sample buffer
alpha
beta
gamma
Cursor on line 1, column 1
Details & Vim help

Begin the GUI. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :gu[i] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.