Indent a paragraph
>ap
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2 one
two
keepCursor on line 1, column 4 one
two
keepCursor on line 1, column 4 one
two
keepCursor on line 1, column 5Apply the indentation operator to a paragraph.
Waiting for motion or text object
Apply the indentation operator to a paragraph
Before & after
one
two
keepCursor on line 1, column 4 one
two
keepCursor on line 1, column 5Start in Normal mode, at line 1, column 4 (one-based). Use shiftwidth=2, expandtab and no automatic indentation for this example. = follows the active indentation rules. An object can make an operator linewise. Press >ap.
Details & Vim help
Example replayed in Vim
Apply the indentation operator to a paragraph.
Use shiftwidth=2, expandtab and no automatic indentation for this example. = follows the active indentation rules. An object can make an operator linewise.