maart@cs.vu.nl (Maarten Litmaath) (06/19/89)
kannan@cerc.wvu.wvnet.edu (R. Kannan) writes:
\...
\:wq
A dangerous command: in some versions vi does NOT check if the write operation
has been successful, but always quits.
Use `ZZ' or `:x' instead.
Is it time again for the Vi Reference? Followups to comp.editors.
--
"I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam:
they're small." (Stephen Savitzky) |maart@cs.vu.nl, mcvax!botter!maart
woolsey@nsc.nsc.com (Jeff Woolsey) (06/22/89)
In article <2781@solo8.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: >A dangerous command: in some versions vi does NOT check if the write operation >has been successful, but always quits. >Use `ZZ' or `:x' instead. I cannot let this go by unchallenged. ZZ is very dangerous if you used the -r flag on vi, and make no further changes. It does NOT write out your file, AND it removes the file in /tmp. I lost a two-hour editing session on a new file I was composing that way. Never again! -- -- Qualify nearly everything. Jeff Woolsey woolsey@nsc.NSC.COM +1 408 721-8162