Vim is a highly configurable text editor. However, it has a steep learning curve. The objective of this documentation is to show you the essential commands to get started.

First, Vim has two basic modes: insert mode (press i), which lets you write text as if in a normal text editor; normal mode (press Esc) lets you navigate and manipulate text efficiently.

You use the keys h, j, k, and l to move the cursor. They are assigned to the following operations:

hCursor goes to the left
jCursor goes down
kCursor goes up
lCursor goes to the right

To navigate the text, you use the w, b, and e keys. They are assigned as follows:

wMoves to the start of the next word
bMoves to the end of the word
eMoves at the start of the word

Another important aspect of Vim is that you can multiply commands. For example, you will move the cursor to the right five times if you hit 5 and then l. Or even, 10 + i + - + Esc will add ten times the - character: ----------.

Finally, there are some commands on Vim that you need to know to edit some files. These commands are only available on Normal mode:

:wSave changes
:q!Exit Vim without saving changes
:wqSave changes and exit

These commands are the bare minimum you need to edit a file. If you want to learn more commands and how to use Vim, check this website.

What’s Next