Hot keys

Just some Vim essential notes for learning use. :)


  • Open a file vim 'filename'
  • Close a file :q
  • Force quit a file without save :q!
  • Save file :w
  • Save and quit :wq

Under COMMAND mode:

  • Left h
  • Down j
  • Up k
  • Right l
  • Next page: control + b(back)
  • Previous page: control + f(front)

INSERT mode:

  • Enter insert mode i
  • Quit esc

Reference

[1] 简明 VIM 练级攻略