Skip to content

Instantly share code, notes, and snippets.

@Innarticles
Last active April 13, 2019 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Innarticles/2e1a950fbbcbc2b3f980dd33321243c2 to your computer and use it in GitHub Desktop.
Save Innarticles/2e1a950fbbcbc2b3f980dd33321243c2 to your computer and use it in GitHub Desktop.
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