# Vim Essentials

Survive and work efficiently in Vim.

| Task | Keys |
|---|---|
| Insert before / after cursor | `i` / `a` |
| New line below / above | `o` / `O` |
| Back to normal mode | `Esc` |
| Save, quit | `:w`, `:q`, `:wq` |
| Quit without saving | `:q!` |
| Move by word | `w` `b` `e` |
| Line start / end | `0` / `$` |
| File start / end | `gg` / `G` |
| Delete line | `dd` |
| Copy line | `yy` |
| Paste | `p` |
| Undo / redo | `u` / `Ctrl+r` |
| Search, next, previous | `/text`, `n`, `N` |
| Replace all | `:%s/old/new/g` |
| Visual select | `v` (chars) `V` (lines) |
| Line numbers | `:set number` |
