Vi is a modal editor. When using the editor, the mode that you are in determines what the keys do.
The three modes that are most important right away are "NORMAL" mode, "INSERT" mode, and "COMMAND"
mode. NORMAL mode is the mode that you start in, and the mode that you will likely spend the
majority of your time in. When in INSERT mode, text you type is inserted into the text document
wherever your cursor is. When in COMMAND mode, your cursor is at the bottom of the screen at a
prompt beginning with a colon (:
) and you can execute commands that apply to the currently visible
text document.
In NORMAL mode, press i
to go into insert mode and :
to go into command mode. In either INSERT