Vim Recall繁體中文

Indent four lines once

4>>

Example

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

Use a count with a repeated line operator.

Before & after
Before
one
two
three
four
five
Cursor on line 1, column 1
After
  one
  two
  three
  four
five
Cursor on line 1, column 3

Start 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.