4

!rant vim
As i've seen a lot of rants about can't close vim type so I searched and found this in book does it work or not .
Try these: What to Type What it does
:q Quit the current window (or editor if you are out of windows) if there are no unsaved changes.
:q! Quit the current window even if there are unsaved changes.
:qa Quit all windows unless there are unsaved changes.
:qa! Quit all windows even if there are unsaved changes.
:wq Save changes and quit the current window.
ZZ Save changes and quit current window

If you can't get out of vim, you should check to be sure the 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.

Comments
Add Comment