Remix.run Logo
fragmede 6 hours ago

:x is a vim feature, so this wouldn't support it, so you'll have to use :wq instead.

JdeBP 4 hours ago | parent | next [-]

Incorrect.

: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...

Ritter's vi is derived from Joy+Horton vi. Illumos has the original.

atsaloli 5 hours ago | parent | prev [-]

or ZZ to save and exit

alkyon 3 hours ago | parent | next [-]

Repeat ZZ to save & exit if there are more files to edit

ZQ - discard & exit

herodoturtle 4 hours ago | parent | prev [-]

28 years of vi and TIL about ZZ.

Thanks friend! ^_^

bbaron63 3 hours ago | parent | next [-]

ZZ 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.

wyclif 3 hours ago | parent [-]

Did they say "zz" or specify [capital] "ZZ"?

mghackerlady 4 hours ago | parent | prev [-]

I just learnt it the other day, as well. Granted, it was from chapter 1 of "Learning the vi and vim Text Editors" but shhh