home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.misc:4737 comp.os.msdos.apps:4341
- Newsgroups: comp.os.msdos.misc,comp.os.msdos.apps
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!gsroka
- From: gsroka@leland.Stanford.EDU (Gregory Sroka)
- Subject: Re: WARNING!!!! major problem with vi and possibly every other app around! (was: help I don't understand write caches like smartdrive 3.1)
- Message-ID: <1992Aug15.074707.24279@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSG, Stanford University, CA 94305, USA
- References: <1992Aug13.202720.22761@serval.net.wsu.edu> <1992Aug14.141659.328@csc.canterbury.ac.nz> <1992Aug14.232515.5824@cco.caltech.edu>
- Date: Sat, 15 Aug 92 07:47:07 GMT
- Lines: 26
-
- In article <1992Aug14.232515.5824@cco.caltech.edu> nyet@cco.caltech.edu (n liu) writes:
- >The other day I was editing a file with vi and I quit using :q!
- >
- >I lost ALL my changes!!!! I belive this to be a major problem with vi.
- >
- >I've heard lots of other programs do this too.
- >--
- >nyet@cco.caltech.edu
- >nyet@aerospace.aero.org
-
- (suppressing urge to say RTFM ...)
- You are either new to vi or left your terminal unattended. (I've heard
- about those crazy Caltech practical jokers).
- From The Waite Group's "UNIX Primer Plus" (a very handy book):
- - the vi Reference Card sez:
- "<Esc>:q! Emphatic form of quit. No changes written."
- "<Esc>:wq Write and quit."
- "<Esc>ZZ Write and quit."
-
- Strangely enough, most programs do provide the option to quit without
- saving. I've even had occasion to use this a few times! ;-)
-
- ---
- Greg Sroka
-
-
-