Vim Recall繁體中文

Define menu tooltip

:tmenu

Example

Normal 0 / 2

Define menu tooltip.

Menu definitions

Recall.Hello
:echo 'Hello'<CR>
Tooltip
none
Before & after

Before

Menu definitions

Recall.Hello
:echo 'Hello'<CR>
Tooltip
none

After

Menu definitions

Recall.Hello
:echo 'Hello'<CR>
Tooltip
Displays a greeting.

Subject: :tmenu. Documentation-backed illustration; assumes X11 or Win32 GUI with +menu and prepared Recall.Hello item; not replay-verified. Associates the tip with Recall.Hello; hovering the existing item can display this text. This defines a tip, not a Terminal-mode menu.

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

Define menu tooltip. 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 :tm[enu] 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.