Vim: Insert Mode

Pressing Ctrl-o in insert mode will turn Vim into normal mode for one set of command.

Pressing Esc in insert mode will turn Vim into normal mode permanently.

Ctrl-o h    move cursor left 
Ctrl-o l    move cursor right
Ctrl-o j    move cursor down
Ctrl-o k    move cursor up
Ctrl-h      backspace / delete one character left of cursor
Ctrl-j      enter / insert newline

Ctrl-w      delete word to the left of cursor
Ctrl-o dw   delete word to the right of cursor
Ctrl-u      delete everything from cursor to the left of cursor
Ctrl-o D    delete everything from cursor to the right of cursor

Ctrl-t      indent current line
Ctrl-d      un-indent current line

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *