3 ms·You can use :wq to do both at the same time.by _generic 2y agoYou can use :wq to do both at the same time.sshine 2y agoYes, but that adds one more command. You can also do ZZ instead of :x, if you're playing keystroke golf.