3 ms·
Yes, but if I :q and it complains that the file was modified, and I decide that the change is worthwhile, :wq and :x are equivalent, since :x is only different
by sshine 4y ago
Yes, but if I :q and it complains that the file was modified, and I decide that the change is worthwhile, :wq and :x are equivalent, since :x is only different when the file isn’t modified.
You may argue that :x is shorter, but one thing is character count and another is muscle memory distance because of mnemonic similarity between :q and :wq.
- caust1c 4y agoCould alias x to wq? :-) That's what I'm doing after discovering this!
- moloch-hai 4y agoAlias x to q, I think you mean?