Vim Recall繁體中文

Add menu for Insert mode

:imenu

Example

Normal 0 / 2

Add menu for Insert mode.

GUI menu bar

Example menu
absent
Before & after

Before

GUI menu bar

Example menu
absent

After

GUI menu bar

Visible entry
Example.Hello
Applies in
Insert
Action
hello
Remapping
enabled

Documentation-backed illustration. a running GUI Vim with +menu; guioptions contains m and g; :imenu mode and remapping semantics from gui.txt. The Example menu gains this concrete entry. Its action is registered for the displayed modes; defining it does not invoke it. Primary help: :imenu.

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

Add menu for Insert 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 :ime[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.