| :n | Move the the n-th line in the file |
| nw | Move n words to the right |
| w | Move to the beginning of the next word |
| e | Move to the end of the next word |
| b | Move to the beginning of the previous word |
| h | Move the cursor one character to the left (May also be left arrow key) |
| l | Move the cursor one character to the right (May also be the right arrow key) |
| j | Move the cursor up one line (May also be the up arrow key) |
| k | Move the cursor down one line (May also be the down arrow key) |
| 0 | Move the cursor to the beginning of the line |
| $ | Move the cursor to the end of the line |
| G | Move the cursor to the end of the file |
| % | When the cursor is over a [,],(,),{, or } use this command to move the cursor to
either the beginning or closing [],(), or {}. |
| Ctrl-f | Move the cursor one page forward |
| Ctrl-b | Move the cursor one page back |
| Ctrl-d | Move the cursor half a page forward |
| Ctrl-u | Move the cursor half a page back |
| Ctrl-m | Move the cursor to the first character on the next line |
| dd | Delete the current line |
| ndd | Deletes n lines |
| dw | Delete the word under the cursor |
| ndw | Delete n words |
| x | Delete the character under the cursor |
| nx | Deletes n characters |
| cw | Change a word, deletes the word under the cursor and puts you in insert mode |
| cc | Change a line, deletes the current line and puts you in insert mode |
| s | Change a character under the cursor |
| u | Undo the last change |
| J | Join the following line with the current one |
| U | Undo all changes to current line |
| D | Delete from the cursor to the end of the line |
| C | Change the current line from the cursor - deletes everything after the cursor |
| yy | Yank(copy) the current line into a buffer |
| nyy | Yank n lines into a buffer |
| ynw | Yank n words into a buffer |
| dd | Deletes the current line, also stores it into a buffer. ndd deletes and stores n lines |
| "ayy | Yanks the current line into a buffer called a, a could also be any other letter |
| n"ayy | Yanks n lines and puts them into a buffer called a. Again a could be any other letter |
| P | Pastes the buffer before the current line |
| p | Pastes the buffer after the current line |
| "aP | Paste the buffer 'a' before the current line |
| "ap | Paste the buffer 'a' after the current line |