The Vi editors are modal editors and behaves then differently, depending on which mode you are in.
The two basic modes are called:
Others mode:
Hello World
The normal mode (ESC) is the default one where you can execute commands.
To get back to Normal mode, no matter what mode you are in, press the Esc key. Sometimes you have to press it twice. If Vim beeps back at you, you already are in Normal mode.
See Intro mode
:set showmode
Command | Description | Mode | Note |
---|---|---|---|
i | Go to insert Mode | Normal | |
ESC | Return to Normal Mode | Any |