si:vim
Vim Shortcuts
Editors
By EZ4Code Team
Modes
9| Shortcut | Description | Platform |
|---|---|---|
| i | Insert mode (before cursor) | all |
| a | Insert mode (after cursor) | all |
| o | Open new line below, insert | all |
| O | Open new line above, insert | all |
| Esc | Return to Normal mode | all |
| v | Visual mode (char) | all |
| V | Visual mode (line) | all |
| Ctrl+v | Visual block mode | all |
| R | Replace mode | all |
Movement
10| Shortcut | Description | Platform |
|---|---|---|
| h j k l | Move left/down/up/right | all |
| w | Next word start | all |
| b | Previous word start | all |
| e | Next word end | all |
| 0 | Start of line | all |
| $ | End of line | all |
| gg | First line | all |
| G | Last line | all |
| Ctrl+d | Half page down | all |
| Ctrl+u | Half page up | all |
Editing
10| Shortcut | Description | Platform |
|---|---|---|
| x | Delete char under cursor | all |
| dd | Delete line | all |
| dw | Delete word | all |
| D | Delete to end of line | all |
| yy | Yank (copy) line | all |
| p | Paste after cursor | all |
| P | Paste before cursor | all |
| u | Undo | all |
| Ctrl+r | Redo | all |
| . | Repeat last change | all |
Search
7| Shortcut | Description | Platform |
|---|---|---|
| /pattern | Search forward | all |
| ?pattern | Search backward | all |
| n | Next match | all |
| N | Previous match | all |
| * | Search word under cursor forward | all |
| # | Search word under cursor backward | all |
| :%s/old/new/g | Replace all | all |
Visual
7| Shortcut | Description | Platform |
|---|---|---|
| vw | Select to next word | all |
| v$ | Select to end of line | all |
| VG | Select to last line | all |
| d | Delete selection | all |
| y | Yank (copy) selection | all |
| > | Indent selection right | all |
| < | Indent selection left | all |