Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: