Vim Recall繁體中文

Clear menu for Command-line mode

:cunmenu

Example

Normal 0 / 2

Clear menu for Command-line mode.

GUI menu bar

Entry
Example.Hello
Mode definitions
Command-line
Action
hello
Before & after

Before

GUI menu bar

Entry
Example.Hello
Mode definitions
Command-line
Action
hello

After

GUI menu bar

Example.Hello
removed; no definitions remain

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

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

Clear menu for Command-line mode. 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 :cunme[nu] 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.