Skip to content

vim

Created on Dec 4, ’22 ・ Updated on Mar 7, ’23

Modes

  • i: insert mode
  • ESC: normal mode
  • v: visual mode
  • V: visual line mode

Delete stuff

  • x, X: delete character under, before cursor.
  • d: delete something
  • y: copy something

Move around

  • b, w, e, previous word (beginning), next word, end of next word
  • 0, $, beginning and end of line
  • gg, G, beginning and end of file

Misc

  • u, Ctrl+R: undo, redo last command
  • :!<command>, execute a command in shell
  • :r !<command>, execute a command and insert its output in Vim