Vim Recall繁體中文

Interrupt current (search) command

Ctrl-c

Example

Normal 0 / 1
one two
three four
Cursor on line 1, column 1

Interrupt current (search) command.

Search progress

Pattern
absent-pattern
Status
Searching…
Before & after
Before
one two
three four
Cursor on line 1, column 1

Search progress

Pattern
absent-pattern
Status
Searching…
After
one two
three four
Cursor on line 1, column 1

Search 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.