Vim Recall繁體中文

Build a numeric count before a command

6

Example

Normal 0 / 2
one two three four five six seven eight nine ten
Cursor on line 1, column 1

Build a numeric count before a command.

Before & after
Before
one two three four five six seven eight nine ten
Cursor on line 1, column 1
After
one two three four five six seven eight nine ten
Cursor on line 1, column 29

Start in Normal mode. The displayed digit supplies a count; w is the example's completing motion.

Details & Vim help

Example replayed in Vim

Build a numeric count before a 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. A leading count begins with 1–9; subsequent digits can include 0. A standalone leading 0 is the start-of-line motion. The command is still pending until its remaining keys are entered.