Course lesson
Save Files in Vim with the Write Command
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!.
- Duration
- 1 min
- Access
- Free
- Transcript
- Needs source
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!.