Unindent 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 1Shift a brace block’s contents to the left.
Waiting for motion or text object
Shift a brace block’s contents to the left
Before & after
{
one
two
}
keepCursor on line 2, column 5{
one
two
}
keepCursor on line 2, column 1Start in Normal mode. expandtab is on and shiftwidth=2; the example starts inside the braces.
Details & Vim help
Example replayed in Vim
Shift a brace block’s contents to the left.
Combine the < operator with i{ to unindent the inner block. The outer braces are excluded by the text object.