How to Exit Vim

While Vim has a steep learning curve, you can learn enough Vim in 5 minutes to not be completely lost when you use it.

To exit Vim you need to be in Normal Mode.

To get to Normal Mode press the Escape key twice. Your computer may beep at you, but that is OK.

Type :q! followed by the Enter key to quit without saving.

Type :x! followed by the Enter key to save changes and exit.

If you see recording in the lower left corner of the screen, press q to exit recording mode, then proceed as described above.


  <body>
    <!-- page content goes here -->
    <p>This is some dummy content.</p>
  </body>
</html>
~
~
~
recording @q                            1,1           All