Guy Lyons

Movement

  • w forward a word
  • b backward a word
  • 0 start of line
  • $ end of line
  • gg start of file
  • G end of file
  • f<char> jump to next character on the line
  • t<char> jump to just before next character on the line

Insert

  • i insert before cursor
  • I insert at start of line
  • a insert after cursor
  • A insert at end of line
  • o new line below
  • O new line above

Delete and Change

  • d<motion> delete by motion
  • dw delete word
  • d$ delete to end of line
  • d0 delete to start of line
  • dd delete current line
  • dG delete to end of file
  • dgg delete to start of file
  • c<motion> change by motion
  • cw change word
  • c$ change to end of line
  • x delete character under cursor
  • r<char> replace character under cursor

Search

  • /pattern search forward
  • ?pattern search backward
  • n next search result
  • N previous search result

Editing Helpers

  • J join line with next line
  • u undo
  • Ctrl+r redo
  • . repeat last command
  • 3dd delete 3 lines
  • d2w delete 2 words