3 ms·
How do you explain "w" and "wq" to save and quit the editor with "verb adjective object" model? These two and "i" is all I remember about vi. Or is vi a differ
by smusamashah 2y ago
How do you explain "w" and "wq" to save and quit the editor with "verb adjective object" model?
These two and "i" is all I remember about vi. Or is vi a different thing from vim and this model doesn't apply?
- MathMonkeyMan 2y ago"w" and "wq" happen in command mode. "verb adjective object" happens in normal mode. Command mode is more like ed. vim is vi "IMproved." Just a more featureful version.
- cassepipe 2y agoI don't understand why people keep talking about :wq when :x has been a thing for so long now
- philipwhiuk 2y agoBecause :wq is sufficient and I need :w and :q! anyway
- cassepipe 2y agoset confirm
- metaltyphoon 2y agoThis is probably because :X encrypts a file so too easy to make that mistake?
- marliechiller 2y agoI dont understand why people even do that when ZZ is easier xD
- cassepipe 2y agoI disagree that's two combos (Shift + z) on awkward key whereas you should be used to : by now
- marliechiller 2y agoZZ is less key presses - :wq is [shift;wq], the keys of which are spread all over the keyboard vs [shiftzz] which is much less traversing, quicker and can be done with little and ring finger with no physical trouble
- marliechiller 2y agoto add, :x is still [shift;xENTER] so 4 key presses also!