3 ms·
> :w - write the file > :wq - writes the file regardless of changes and quits The first one is also "write the file regardless of changes", to be clear. The
by sundarurfriend 5y ago
> :w - write the file
> :wq - writes the file regardless of changes and quits
The first one is also "write the file regardless of changes", to be clear. The command version of "saves only if file was modified" is :up (for update). I have that mapped to a normal mode key and rarely ever use `:w`.
- asciimov 5y agoJust learned about update, after 18 years of vimming, thanks!