Save Files in Vim with the Write Command

Michael Chan
InstructorMichael Chan

Share this video with your friends

Send Tweet
Published a year ago
Updated 9 months ago

Save files in Vim using the write :write command in normal mode. This common command can be abbreviated :w. Use it in tandem with :q[uit] to save and quit simultaneously: :wq. The write command can be used with a bang (!) to write over read-only files — :w!.