Vim Recall繁體中文

Insert at the first nonblank

I

Example

Normal 0 / 3
  red
Cursor on line 1, column 5

Begin typing before the first nonblank character.

Before & after
Before
  red
Cursor on line 1, column 5
After
  Xred
Cursor on line 1, column 3

Start in Normal mode. Cursor starts on d. Type IX, then Esc.

Details & Vim help

Example replayed in Vim

Begin typing before the first nonblank character.

I moves to the first nonblank character on the current line and enters Insert mode. Existing indentation is retained.