Vim Cheat sheet
Basic Commands
Vim Command | Description |
| Enter insert mode |
| Enter command mode |
| Delete a character |
| Delete character is backspace mode |
| Undo changes |
| Redo changes |
| Copy a line |
| Delete a line |
| Paste the content of the buffer |
| Search and then cycle through matches with n and N |
| Move to the beginning of a file |
| Move to the end of a file |
| Search and replace all occurrences with confirmation |
| Save changes |
| Save and quit Vim |
| Force quit Vim discarding all changes |
Quit and Save
Vim Command | Description |
| To Exit Vi and save changes |
| To Exit Vi if there have been no changes |
| Exit Vi in case of saving changes if any have been made |
| Exit and ignore any changes |
Text Deletes Commands
Vim Command | Description |
| Delete character to the right of cursor |
| Delete character to the left of the cursor |
| Delete to the end of the line |
| Delete current line |
| Delete current line |
Inserting Text Commands
Vim Command | Description |
| Insert before cursor |
| Insert before line |
| Append after cursor |
| Append after line |
| Open a new line after current line |
| Open a new line before current line |
| Replace one character |
| Replace many characters |
Navigation commands
Vim Command | Description |
| Move left |
| Move down |
| Move up |
| Move right |
| Move to next word |
| Move to next blank delimited word |
| Move to the beginning of the word |
| Move to the beginning of blank delimted word |
| Move to the end of the word |
| Move to the end of Blank delimited word |
| Move a sentence back |
| Move a sentence forward |
| Move a paragraph back |
| Move a paragraph forward |
| Move to the begining of the line |
| Move to the end of the line |
| Move to the first line of the file |
| Move to the last line of the file |
| Move to nth line of the file |
| Move to nth line of the file |
| Move forward to c |
| Move back to c |
| Move to top of screen |
| Move to middle of the screen |
| Move to botton of screen |
| Move to associated ( ), { }, [ ] |
Last updated