Vim Recall繁體中文

Tear-off a menu

:tearoff

Example

Normal 0 / 2

Tear-off a menu.

GUI menus

Floating tearoff
none
Before & after

Before

GUI menus

Floating tearoff
none

After

GUI menus

Floating tearoff
Recall floating tearoff is open, containing Demo

Subject: :tearoff. Documentation-backed illustration; assumes Win32 GUI with +menu and :tearoff support; Recall.Demo already defined; not replay-verified. Recall floating tearoff is open, containing Demo. No menu item has been activated yet.

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

Tear-off a menu. 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 :te[aroff] 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.