Vim Recall繁體中文

Like :echo, show like an error and use history

:echoerr

Example

Normal 0 / 2

Like :echo, show like an error and use history.

Error message history

Text
Before & after

Before

Error message history

Text

After

Error message history

Text
missing item

Documentation-backed illustration. +eval, no enclosing try, and direct command-line execution; English messages, cmdheight=4, at least 80 columns, no pending or scrolled messages, and messagesopt=hit-enter,history:500. :echoerr emits and records the error text. Primary help: :echoerr.

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

Like :echo, show like an error and use history. 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 :echoe[rr] 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.