4 ms·
:x is a vim feature, so this wouldn't support it, so you'll have to use :wq instead.
by fragmede 5mo ago
:x is a vim feature, so this wouldn't support it, so you'll have to use :wq instead.
- atsaloli 5mo agoor ZZ to save and exit
- herodoturtle 5mo ago28 years of vi and TIL about ZZ. Thanks friend! ^_^
- mghackerlady 5mo agoI just learnt it the other day, as well. Granted, it was from chapter 1 of "Learning the vi and vim Text Editors" but shhh
- bbaron63 5mo agoZZ is the first vi command I learned. After typing vi and only seeing a column of ~s, I asked how do I get out of this thing. Someone answered - ZZ.
- atsaloli 4mo agoYou are welcome! I’m happy to hear it! I teach a vi basics tutorial and I get that a lot. :) http://vitutorial.org/ http://vitutorial.org/ The tutorial is based on Bill Joy’s original paper introducing the vi editor. Maybe you’ll find something else new there. :)
- alkyon 5mo agoRepeat ZZ to save & exit if there are more files to edit ZQ - discard & exit
- JdeBP 5mo agoIncorrect. :x is a vi feature, that was introduced by Mary Ann Horton to actual Joy+Horton vi in February 1980. * https://code.illumos.org/plugins/gitiles/illumos-gate/+/refs/heads/master/usr/src/cmd/vi/port/ex.news#1037 https://code.illumos.org/plugins/gitiles/illumos-gate/+/refs... Ritter's vi is derived from Joy+Horton vi. Illumos has the original.
- fragmede 5mo agoFascinating! I wonder what fork of vi I landed on that didn't have :x for me to have mis-picked-up that bit of trivia.
- JdeBP 5mo agoOnly Ritter vi is really a fork. All of the rest are clones, ground-up reimplementations not forked from the Joy+Horton code. Of them, and discounting the extreme fringes like vi-likes that run on the BBC Micro, only STEVIE lacks :x, and its derivatives all added it in. All of the other clones from MKS onwards, even neatvi and nextvi, have :x . * https://jdebp.uk/FGA/vi-family.html https://jdebp.uk/FGA/vi-family.html
- fragmede 4mo agoWow. Thank you.