This article will guide you on how to exit #vim text editor using various options.
1. Open a new or existing file with vim filename .
2. Type i to switch into insert mode so that you can start editing the file.
3. Enter or modify the text with your file.
4. Once you're done, press the escape key Esc to get out of insert mode and back to #command mode.
5. Type :wq to save and exit your file.