Once you're done, press the escape key Esc to get out of insert mode and back to command mode. Type :wq to save and exit your file.
- How to exit insert mode in Vim without Esc?
- How do I exit insert?
- How do I get out of insert mode in terminal?
- How do I go to normal mode in Vim?
How to exit insert mode in Vim without Esc?
If you have an American English keyboard, pressing Ctrl-[ (control plus left square bracket) is equivalent to pressing Esc. This provides an easy way to exit from insert mode.
How do I exit insert?
In Insert mode, you can enter text, use the Enter key to go to a new line, use the arrow keys to navigate text, and use vi as a free-form text editor. To return to Command mode, press the Esc key once. [ Get more out of your text editor: 5 Vim features for power users. ]
How do I get out of insert mode in terminal?
Insert Mode is invoked when you type the I command without any text, and is exited by pressing ENTER on an empty line.
How do I go to normal mode in Vim?
Normal Mode
By default, Vim starts in “normal” mode. Normal mode can be accessed from other modes by pressing Esc or <C-[> .