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

BTW it's :x to save and exit.


ZZ for the win (3 keystrokes vs 4 for :x)


I use command mode a lot, so have swapped ":" and ";". With that, :x + enter is 3 keystrokes, and hitting x is a bit easier than hitting z.


I aliased it so either : or ; work for :

I admit I typed :wq for more than a decade before learning about :x


I've been doing :wq for so long that my fingers have already done it before I realize I should have done :x


OMG. 30 years of using vi and this falls from the heavens. Thank you!

I am a proficient vi user but it’s totally weird watching the keyboard of another vi user. Totally different (and probably better) keystrokes.


:wq! because I really mean it!


why not just :q! to live dangerously :)


nitpick: you seem to be talking about command-line mode; command mode is normal mode


is it different on vim? I always just use :wq when I'm using vim, but then, i've never used plain old vi.




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

Search: