Equivalent to <CR>
Ctrl-m
Example
Command-line 0 / 1Normal 1 / 1Equivalent to <CR>.
Command line
- Prompt
:echo 'red blue'- Insertion column
16- Editing mode
Insert- Completion menu
inactive
Command history
Vim messages
Empty
- Last status message
- Last warning
Command applied
Command line
- Prompt
- Insertion column
0- Editing mode
Inactive- Completion menu
inactive
Command history
- 1
echo 'red blue'
Vim messages
Empty
- Last status message
- Last warning
Before & after
Before
Command line
- Prompt
:echo 'red blue'- Insertion column
16- Editing mode
Insert- Completion menu
inactive
Command history
Vim messages
Empty
- Last status message
- Last warning
After
Command line
- Prompt
- Insertion column
0- Editing mode
Inactive- Completion menu
inactive
Command history
- 1
echo 'red blue'
Vim messages
Empty
- Last status message
- Last warning
Start in Command-line mode. A literal :echo prompt is already open. This key edits, moves within, cancels, or submits that prompt; the text buffer is separate.
one two
three four
five six
keepCursor on line 1, column 1Details & Vim help
Example replayed in Vim
Equivalent to <CR>. Use while editing a : command or / or ? search prompt; this submits the current prompt, executing the Ex command or performing the search. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.