Vim Recall繁體中文

Indent the current line

>>

Example

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

Shift the line one indentation step to the right.

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 the line one indentation step to the right.

The size of the step follows shiftwidth and related settings. A count such as 3>> shifts three lines once.