Trigger abbreviation
Ctrl-]
Example
Command-line 0 / 1Command-line 1 / 1Trigger abbreviation.
Command line
- Typed text
:echo teh- Insertion offset
9
Command-line abbreviation
- cnoreabbrev
teh the
CTRL-] expands teh to the without inserting a delimiter or executing the command.
Command line
- Typed text
:echo the- 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-].
alpha
beta
gammaCursor on line 1, column 1Details & 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.