Vim Recall繁體中文

Add menu for Operator-pending mode

:omenu

Example

Normal 0 / 2

Add menu for Operator-pending mode.

Menu definitions

Recall.Demo
not defined
Before & after

Before

Menu definitions

Recall.Demo
not defined

After

Menu definitions

Recall.Demo
Operator-pending: iw (remappable RHS)

Subject: :omenu. Documentation-backed illustration; assumes +menu and GUI menu support; explicit mode follows map.txt mapmode links (v includes Select; x is Visual only); not replay-verified. Defines Recall.Demo for Operator-pending with the literal RHS iw; its keys can be remapped. Defining the menu does not invoke it.

Sample buffer
one two
Cursor on line 1, column 1
Details & Vim help

Add menu for Operator-pending 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 :ome[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.