Come now, we're just scratching the surface...
Given you're in command mode:
:wqa
:x
:ex
ZZ
ZQ
:1,5wq
There's more. A lot more. Interested? :h quit will take you to the Vim help section on quitting.
:h quit
Haha! Absolutely! I was hoping for comments just like this. Thank you, and keep the Vim tricks coming!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Come now, we're just scratching the surface...
Given you're in command mode:
:wqa
will write, quit all buffers (in case you have more than one):x
will also save and quit:ex
as aboveZZ
will save and quitZQ
will just quit:1,5wq
will save only lines 1 to 5 and quitThere's more. A lot more. Interested?
:h quit
will take you to the Vim help section on quitting.Haha! Absolutely! I was hoping for comments just like this. Thank you, and keep the Vim tricks coming!