How to save all files in tabs on Vim?
问题 If I have multiple files in tabs on VIM and I edit few of them. How to save them with one command? 回答1: The command wa (short for wall ) will write all changed buffers. You can also use :tabdo w , which is definitely exactly what you want, and generalizes nicely. 回答2: Just do :wa (followed by return) which is a shorthand for :wall Also to "save everything and exit" you can do :wqa or :xa (="write-quit-all") 回答3: To save all the files just use an a after the write command to write all the