Vim shortcuts
Vim Keyboard Shortcuts
General
| command | Description |
|---|---|
| :help | access help |
| :wq | write file + quit |
| :q | exit |
Edit
| command | Description |
|---|---|
| u | undo |
| . | redo |
| y y | copy line text |
| p | paste |
| d d | cut current line |
| d e | delete from cursor to eol |
| d w | delete word to right |
| o | open black line below |
| O | open black line below |
| v + arrows | select lines while moving |
| { / } | move up/down code blocks |
Movement
| command | Description |
|---|---|
| e | move by end of word forward |
| w | move by word forward |
| b | move 1 word backward |
| Ctrl+Home | top of page |
| Ctrl+End | bottom of page |
| $ | jump to end of line |
| ^ | jump to start of line |
Extras
| command | Description |
|---|---|
| :tf | open up file tree in current directory |
| :t | open up file tree |
Window navigation
| command | Description |
|---|---|
| ctrl ws | create a horizontal split |
| ctrl wv | create a vertical split |
| ctrl wq | close the current window |
| ctrl ww | iterate over the current windows |