h moves the cursor one character to the left. | |
j moves the cursor down one line. | |
k moves the cursor up one line. | |
l moves the cursor one character to the right. | |
0 moves the cursor to the beginning of the line. | |
$ moves the cursor to the end of the line. | |
w move forward one word. | |
b move backwards one word. | |
G move to the end of the file. | |
gg move to the beginning of the file. | |
`. move to the last edit. | |
d starts the delete operation. | |
dw will delete a word. | |
d0 will delete to the beginning of a line. | |
d$ will delete to the end of a line. | |
dgg will delete to the beginning of the file. | |
dG will delete to the end of the file. | |
u will undo the last operation. | |
Ctrl-r will redo the last undo. | |
ZZ - save and quit | |
Switch Mode: | |
i - to INSERT mode | |
Escape - to Commandline mode | |
: - last-line mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment