Shailesh Kumar Sundram
Shailesh Kumar Sundram

Shailesh Kumar Sundram

How to Traverse in Insert Mode in Vim

How to Traverse in Insert Mode in Vim

Shailesh Kumar Sundram's photo
Shailesh Kumar Sundram
·Aug 6, 2022·

1 min read

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
 
Share this