It’ll save you more than keystrokes. It’ll save you time wondering if you even changed the file.
For an un-edited file, you can just use :q to close the file. For an edited file though, it needs to be written before it can be quit so you can do :w then :q or you can do :wq
:x will check for un-saved changes, and save them if need be. Then close the file for you.
Bonus tip — Use :xa to save and close *all* your files!
#vim #tips #meme
https://fosstodon.org/@vimtips/113905091685283017
@awoodsnet @vimtips and don’t forget if you try to quit and it tells you to save your changes and you don’t remember making any, :q! Is your friend.