How to Traverse in Insert Mode in Vim

How to Traverse in Insert Mode in Vim

In insert mode, use ctrl+o to go to normal mode for just one command:

  • 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+w - delete word to the left of cursor
  • ctrl+o d - delete everything to the right of cursor
  • ctrl+u - delete everything to the left of cursor
  • ctrl+h - backspace/delete
  • ctrl+j - insert newline
  • ctrl+t - indent current line
  • ctrl+d - un-indent current line