Vim Recall繁體中文

Equivalent to :echomsg, but use a popup window

:echowindow

Example

Normal 0 / 2

Equivalent to :echomsg, but use a popup window.

Message popup

Text
Before & after

Before

Message popup

Text

After

Message popup

Text
ready

Documentation-backed illustration. +eval, +timers, and +popupwin; no visible or pending message popup, the default three-second (3000 ms) lifetime, and messagesopt=hit-enter,history:500; snapshot taken before the popup expires. :echowindow displays ready in the timed message popup and records it in message history. Primary help: :echowindow.

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

Equivalent to :echomsg, but use a popup window. 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 :echow[indow] 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.