Vim Recall繁體中文

Clear menu for all modes

:aunmenu

Example

Normal 0 / 2

Clear menu for all modes.

GUI menu bar

Entry
Example.Hello
Mode definitions
all non-Terminal modes
Action
hello
Before & after

Before

GUI menu bar

Entry
Example.Hello
Mode definitions
all non-Terminal modes
Action
hello

After

GUI menu bar

Example.Hello
removed; no definitions remain

Documentation-backed illustration. GUI Vim with +menu, guioptions containing m, and Example.Hello defined only in the displayed modes. Remove the prepared Example.Hello definition from all non-Terminal modes. With no remaining definitions, that entry disappears. Primary help: :aunmenu.

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

Clear menu for all modes. 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 :aun[menu] 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.