GET OUT!


You should be able to get out of a VIM session once you are in it. There are a few ways to do so. Try these:

:qQuit the current window (or editor if you're out of windows) if there are no unsaved changes.
:q!Quit the current window even if there are unsaved changes.
:qaQuit all windows unless there are unsaved changes.
:qa!Quit all windows even if there are unsaved changes.
:wqSave changes and quit the current window.
ZZSave changes and quit current window


When you type a colon, the cursor drops to the lower left corner of the screen. Later you will know why.

For now, it's enough to know that it is supposed to do that, and that these :q commands will work.

Notice that there is no : in front of ZZ. You press capital Z twice while you're in command (video game) mode.

If you can't get out of VIM, you should check that caps lock is OFF, and press the escape button. If it feels good, press it a couple of times. If it beeps, you know that you've escaped enough. Then these exit commands should work.

No comments:

Post a Comment