Vi Commands
:w | Save file |
:wq | Save and exit |
:q! | exit with out saving. |
:set number | Show line number. To hide, use :set nunumber |
Move Commands
CTRL + E | Scroll the window down |
CTRL + Y | Scroll the window up |
CTRL + F | Scroll one page down |
CTRL + B | Scroll one page up |
H | move cursor to top of the window |
M | move cursor to middle of the window |
L | move cursor to bottom of the window |
gg | go to start of the file |
G | go to end of the file |