4 ms·
BTW it's :x to save and exit.
by asciimov 6y ago
BTW it's :x to save and exit.
- rantwasp 6y agoZZ for the win (3 keystrokes vs 4 for :x)
- arunix 6y agoI 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.
- asciimov 6y agoI aliased it so either : or ; work for : I admit I typed :wq for more than a decade before learning about :x
- taborj 6y agoI've been doing :wq for so long that my fingers have already done it before I realize I should have done :x
- devchix 6y ago:wq! because I really mean it!
- rantwasp 6y agowhy not just :q! to live dangerously :)
- com 6y agoOMG. 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.
- graywh 6y agonitpick: you seem to be talking about command-line mode; command mode is normal mode
- holtalanm 6y agois it different on vim? I always just use :wq when I'm using vim, but then, i've never used plain old vi.