Vim Essentials
Version: 9.xPublished: 2026-01-16vim/core
Essential Vim commands for text editing.
Modes
| Example | Description |
|---|---|
| Normal mode Return to normal mode from any other mode. |
| Insert mode Enter insert mode before cursor. |
| Append Enter insert mode after cursor. |
| Visual mode Start character-wise visual selection. |
| Visual line Start line-wise visual selection. |
| Command mode Enter command-line mode. |
Navigation
| Example | Description |
|---|---|
| Move by character Left, down, up, right. |
| Move by word Jump to start of next word. |
| Move by word back Jump to start of previous word. |
| Line start Jump to beginning of line. |
| Line end Jump to end of line. |
| File start Jump to first line of file. |
| File end Jump to last line of file. |
| Go to line Jump to line 42. |
Editing
| Example | Description |
|---|---|
| Delete character Delete character under cursor. |
| Delete word Delete from cursor to start of next word. |
| Delete line Delete entire current line. |
| Change word Delete word and enter insert mode. |
| Change line Delete line and enter insert mode. |
| Replace character Replace single character under cursor. |
| Undo Undo last change. |
| Redo Redo last undone change. |
Copy & Paste
| Example | Description |
|---|---|
| Yank line Copy current line. |
| Yank word Copy from cursor to start of next word. |
| Paste after Paste after cursor. |
| Paste before Paste before cursor. |
Search
| Example | Description |
|---|---|
| Search forward Search for pattern forward. |
| Search backward Search for pattern backward. |
| Next match Jump to next search match. |
| Previous match Jump to previous search match. |
| Search and replace Replace all occurrences in file. |
Files
| Example | Description |
|---|---|
| Save Write current file to disk. |
| Quit Quit (fails if unsaved changes). |
| Save and quit Write and quit. |
| Force quit Quit without saving changes. |
| Open file Open another file for editing. |