Hacker News new | ask | show | jobs
by hhjj 1263 days ago
Can't you use :q and then :x instead of :q then :wq ?
1 comments

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.

Could alias x to wq? :-) That's what I'm doing after discovering this!
Alias x to q, I think you mean?