Vim Recall繁體中文

Begin entering an Ex command with range from current line to the count-1 lines down

{count}:

Example

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

Begin entering an Ex command with range from current line to the count-1 lines down.

Before & after
Before
one
two
three
keep
Cursor on line 1, column 1
After
keep
Cursor on line 1, column 1

Vim registers

" Unnamed register Changed
Linewise · ↵ marks a line breakone↵ two↵ three↵
· space ⇥ tab ↵ line break

ILLUSTRATION. Choose count 3 at the first of four lines; complete with d to demonstrate the supplied range.

Details & Vim help

Begin entering an Ex command with range from current line to the count-1 lines down. Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.