Skip to content

Navigation

VIM

movement

  • character: hjkl left(h) down(j) up(k) right(l)
  • word: forward(w) backward(b)
  • line: start(0) start_text(_) end($)
  • file: start(gg) end(G)
  • window: Ctrl-hjkl close(:q) close_save(:x)
  • buffer: next(:bn) prev(:bn) close(:bd)

files

  • open file: (e)dit <filename>
  • save file: (w)rite [<filename>]

Neovim

  • find buffer <leader><leader>
  • close buffer <leader>bd