Basic Navigation
| Command | Description |
|---|
h, j, k, l | Move left, down, up, right. |
0 | Move to the beginning of the line. |
$ | Move to the end of the line. |
gg | Move to the beginning of the file. |
G | Move to the end of the file. |
Editing
| Command | Description |
|---|
i | Enter insert mode. |
Esc | Exit insert mode. |
x | Delete a character. |
dd | Delete a line. |
yy | Copy a line. |
p | Paste copied text. |
u | Undo the last change. |
Ctrl + r | Redo the last change. |
Saving And Exiting
| Command | Description |
|---|
:w | Save the file. |
:q | Quit Vim. |
:wq | Save and quit. |
:q! | Quit without saving. |
Prev: Annexure B | Next: Annexure D