Indent inside braces
>i{
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 2, column 5Shift the contents of a brace block to the right.
Waiting for motion or text object
Shift the contents of a brace block to the right
Before & after
{
one
two
}
keepCursor on line 2, column 5{
one
two
}
keepCursor on line 2, column 5Start in Normal mode. expandtab is on and shiftwidth=2; the example starts inside the braces.
Details & Vim help
Example replayed in Vim
Shift the contents of a brace block to the right.
The i{ text object excludes the outer braces. The > operator shifts the selected lines according to shiftwidth and related settings.