Interrupt current (search) command
Ctrl-c
Example
Normal 0 / 1Normal 1 / 1one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1Interrupt current (search) command.
Search progress
- Pattern
absent-pattern- Status
Searching…
Interrupt the prepared search; the text stays unchanged.
Search progress
- Pattern
absent-pattern- Status
Interrupted
Before & after
one two
three fourCursor on line 1, column 1Search progress
- Pattern
absent-pattern- Status
Searching…
one two
three fourCursor on line 1, column 1Search progress
- Pattern
absent-pattern- Status
Interrupted
ILLUSTRATION. Assume Unix-like Vim; MS-Windows uses Ctrl-Break to interrupt instead. A long search is prepared in progress for absent-pattern. The illustration shows its cancellation, without running a long search.
Details & Vim help
Interrupt current (search) command. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.