Indent an inner paragraph
>ip
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2{
one
two
}
keepCursor on line 2, column 5{
one
two
}
keepCursor on line 2, column 5 {
one
two
}
keepCursor on line 1, column 3Shift the current paragraph to the right.
Waiting for motion or text object
Shift the current paragraph to the right
Before & after
{
one
two
}
keepCursor on line 2, column 5 {
one
two
}
keepCursor on line 1, column 3Start in Normal mode. expandtab is on and shiftwidth=2; the example starts inside the braces.
Details & Vim help
Example replayed in Vim
Shift the current paragraph to the right.
Combine the > operator with ip to select the nonblank paragraph without its surrounding blank lines. The amount follows indentation settings.