Repeat the previous ":" command the count times
@:
Example
Normal 0 / 1Normal 1 / 1Repeat the previous ":" command the count times.
Example variables
- g:exampleCount
0
Command applied
Example variables
- g:exampleCount
7
Before & after
Before
Example variables
- g:exampleCount
0
After
Example variables
- g:exampleCount
7
Start in Normal mode. The previous Ex command sets an example variable to seven. @: executes that prepared command again.
one
twoCursor on line 1, column 1Details & Vim help
Example replayed in Vim
Repeat the previous ":" command the count times. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.