Vim and nano are command-line text editors that run in a terminal rather than a graphical user interface (GUI). Vim and nano have a similar appearance but differ greatly in functionality and ...
To exit vi or vim without saving changes, press Esc a few times to enter Command mode, then type :q! and hit Enter. To exit vi or vim and commit your changes, press the Escape key to ensure you're in ...