How to Exit Vim Text Editor
To exit Vim text editor, you can follow these steps: Remember that Vim has different modes, such as “Normal” mode, “Insert” mode, and “Command-line” mode. To ensure you are in the correct mode, press the Esc key to switch to “Normal” mode before entering the command to exit Vim.Also read list of important vim commands.