Like :echo, show like an error and use history
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Like :echo, show like an error and use history.
Error message history
- Text
Command entered · ready to apply
Error message history
- Text
Command line
- Typed text
:echoerr "missing item"- Insertion offset
23
:echoerr emits and records the error text.
Error message history
- Text
missing item
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.
alpha
beta
gammaCursor on line 1, column 1Details & 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.