Vim Recall繁體中文

Repeat the previous ":" command the count times

@:

Example

Normal 0 / 1

Repeat the previous ":" command the count times.

Example variables

g:exampleCount
0
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.

Sample buffer
one
two
Cursor on line 1, column 1
Details & 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.