I have to type :q many times if I split window (or open file in a new tab) in vim to close every splited window( or tabs). Is there any way to exit vim just type one time :q and save all changes?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To save and quit all. This is what you need.
Note that the following will do the same thing because
:xais a synonym for:wqa. This is my favourite since it is shorter to type.To quit all:
To not save (lose changes) and quit all: