Vim Recall繁體中文

Indent three lines

3>>

Example

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

Shift three consecutive lines once.

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

Start in Normal mode. expandtab is on and shiftwidth=2, so one indentation step is two spaces.

Details & Vim help

Example replayed in Vim

Shift three consecutive lines once.

For >>, the count chooses the number of lines, not the number of indentation steps. shiftwidth and related settings control the size of the step.