How to quit Vim

Topics
  1. Enter command mode by typing a colon (:)
    You will see it appear in the bottom left, where your cursor will type
  2. Type q and press enter.
    This is Vim shorthand for quit.
    You may need to try again and add ! to the end if you have made changes you don't want to keep.
    Type wq and press enter to save and quit.
Classes