Save Files in Vim with the Write Command

Michael Chan
InstructorMichael Chan
Share this video with your friends

Social Share Links

Send Tweet

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!.