5 ms·
Can't you use :q and then :x instead of :q then :wq ?
by hhjj 4y ago
Can't you use :q and then :x instead of :q then :wq ?
- sshine 4y agoYes, 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?