Indent four lines once
4>>
Example
Normal 0 / 3Count pending 1 / 3Operator pending 2 / 3Normal 3 / 3one
two
three
four
fiveCursor on line 1, column 1one
two
three
four
fiveCursor on line 1, column 1one
two
three
four
fiveCursor on line 1, column 1 one
two
three
four
fiveCursor on line 1, column 3Use a count with a repeated line operator.
Count entered · waiting for command
Waiting for motion or text object
Command applied
Before & after
one
two
three
four
fiveCursor on line 1, column 1 one
two
three
four
fiveCursor on line 1, column 3Start in Normal mode, at line 1, column 1 (one-based). Unlike an operator-motion count product, 4>> selects four lines and shifts them once. This example uses shiftwidth=2 and expandtab. Press 4>>.
Details & Vim help
Example replayed in Vim
Use a count with a repeated line operator.
Unlike an operator-motion count product, 4>> selects four lines and shifts them once. This example uses shiftwidth=2 and expandtab.