DEV Community

Discussion on: How to terminate Vim / Vi

Collapse
 
confusednerd profile image
confused-nerd • Edited

I have been using these for a while with some very basic usage with vi/vim. I have recently learnt a few alternatives are slightly different:

ZZ - Write current file, if modified, and close the current window (same as :x).
ZQ - Quit without checking for changes (same as :q!).

Reference vimhelp.org

Collapse
 
konyu profile image
@kon_yu

@confused-nerd
Thanks for your information. I didn't know those commands.