#Getting Started
Modes
| Shortcut | Description |
|---|---|
| Esc | Normal mode (navigate/commands) |
| i | Insert before cursor |
| a | Insert after cursor |
| v | Visual select |
Movement
| Shortcut | Description |
|---|---|
| h | j | k | l | Left/Down/Up/Right |
| w / b | Next/Previous word |
| 0 / $ | Start/End of line |
| gg / G | First/Last line |
Insert and Edit
| Shortcut | Description |
|---|---|
| o / O | New line below/above |
| x | Delete character |
| dd | Delete line |
| dw | Delete word |
| cw | Change word |
| r | Replace one character |
Copy and Paste
| Shortcut | Description |
|---|---|
| yy | Copy line |
| yw | Copy word |
| p / P | Paste after/before |
Undo and Redo
| Shortcut | Description |
|---|---|
| u | Undo |
| Redo |
Search
| Shortcut | Description |
|---|---|
| /text | Search forward |
| ?text | Search backward |
| n / N | Next/Previous match |
| * | Search word under cursor |
Save and Exit
| Shortcut | Description |
|---|---|
| :w | Save |
| :q | Quit |
| :wq | :x | Save and quit |
| :q! | Quit without saving |
Basic File Actions
| Shortcut | Description |
|---|---|
| :e file | Open file |
| :w file | Save as file |