Vim Recall繁體中文

Split a line at the cursor

i<Enter><Esc>

Example

Normal 0 / 3
redblue
Cursor on line 1, column 4

Insert a newline before the cursor character.

Before & after
Before
redblue
Cursor on line 1, column 4
After
red
blue
Cursor on line 2, column 1

Start in Normal mode. Cursor starts on b. With autoindent and formatoptions disabled, press i, Enter, then Esc.

Details & Vim help

Example replayed in Vim

Insert a newline before the cursor character.

i enters Insert mode before the cursor. Enter splits the line, then Esc returns to Normal mode. Indent and formatting options may add whitespace to the new line.