Vim Recall繁體中文

Trigger abbreviation

Ctrl-]

Example

Command-line 0 / 1

Trigger abbreviation.

Command line

Typed text
:echo teh
Insertion offset
9

Command-line abbreviation

cnoreabbrev
teh the
Before & after

Before

Command line

Typed text
:echo teh
Insertion offset
9

Command-line abbreviation

cnoreabbrev
teh the

After

Command line

Typed text
:echo the
Insertion offset
9

Command-line abbreviation

cnoreabbrev
teh the

Documentation-backed illustration. cnoreabbrev teh the is prepared; c_CTRL-] is pressed at the abbreviation end. CTRL-] expands teh to the without inserting a delimiter or executing the command. Primary help: c_CTRL-].

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

Trigger abbreviation. Use while editing a : command or / or ? search prompt; this edits or controls that prompt rather than running an Ex command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.