Vim Recall繁體中文

Reindent from here to the end

=G

Example

Normal 0 / 2
keep
  one
    two
Cursor on line 2, column 1

Apply the indent operator to a linewise file-end motion.

Before & after
Before
keep
  one
    two
Cursor on line 2, column 1
After
keep
one
two
Cursor on line 2, column 1

Start 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.