Reindent from here to the end
=G
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2keep
one
twoCursor on line 2, column 1keep
one
twoCursor on line 2, column 1keep
one
twoCursor on line 2, column 1Apply the indent operator to a linewise file-end motion.
Waiting for motion or text object
Apply the indent operator to a linewise file-end motion
Before & after
keep
one
twoCursor on line 2, column 1keep
one
twoCursor on line 2, column 1Start in Normal mode, at line 2, column 1 (one-based). With no automatic indent rules configured, this example removes existing indentation. Begin on line two. Press =G.
Details & Vim help
Example replayed in Vim
Apply the indent operator to a linewise file-end motion.
With no automatic indent rules configured, this example removes existing indentation. Begin on line two.