- i: insert mode
- o: insert mode, but one line below
- esc: exit insert mode and return to command mode
- $: go to end of line
- 0: go to beginning of line
- gg: skip to the top of the document
- GG: skip to the bottom of the document
- gt: toggle to the next tab
- dd: delete the line
- d$: delete from wherever your cursor is until the end of the line
- d0: delete from wherever your cursor is until the beginning of the line
- d10d: delete 10 lines (or whatever number you use)
- yy: yank the line (copy)
- d$: yank from wherever your cursor is until the end of the line
- d0: yank from wherever your cursor is until the beginning of the line
- d10d: yank 10 lines (or whatever number you use)
- p: paste
- u: undo
:tabnew <relative path of file you want to open>
: open a new tab:set nu
: set line numbers:set nonu
: remove line numbers:set rnu
: set relative line numbers
:wq
: write and quite:q
: quit, when no changes have been made to the documentq!
: quit, not writing the changes that have been made to the document