ZZ Write current file, if modified, and close the current
window (same as “:x”).
If there are several windows for the current file,
only the current window is closed.
ZQ
ZQ Quit without checking for changes (same as “:q!”).
four. the ! is unnecessary. how many actions are there to save and quit in other editors? ctrl, s, ctrl, w is four. move to file, click, move to save, click, move to ×, click is six.
5 key presses to save and exit. Frickin vim.
I’m pretty sure that’s close without saving changes. :wq would be needed to save.
To be precise, : means bring up commands, w means save, q means exit, and ! means force
I think it’s w = write and q = quit so the letters make more sense
Also :x is the same as :wq
deleted by creator
TIL. Ty!
Why would you want to write again if no changes were made? It’s some obtuse behavior
deleted by creator
To be more precise, q means quit the current window. If you’ve split the window, e.g. with :split or :vsplit, use :qa to quit all windows.
Or 3. Hold shift, press ZZ to save and quit ZQ to quit without saving.
5. Writing and quitting
Since people don’t seem to realize that vim has a help system: You can get to this information with
:help quitor:help exitfour. the ! is unnecessary. how many actions are there to save and quit in other editors? ctrl, s, ctrl, w is four. move to file, click, move to save, click, move to ×, click is six.
and that’s before we replace the wq with x.
Depends how you count. Both
:and!require shift as well.You can use ZZ as a shortcut!
Fuck it I’m pulling the power cord