What is the difference between :q and :qa! in Vim?

The key difference is the exclamation mark here. :q will warn you about unsaved changes and will not let you exit. :q! will not warn you.

See also :help quit (type that in vim)

Leave a Comment