Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site turtlevax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!noao!amd!turtlevax!ken From: ken@turtlevax.UUCP (Ken Turkowski) Newsgroups: net.news Subject: Re: Postnews and vi -- odd behavior Message-ID: <756@turtlevax.UUCP> Date: Mon, 6-May-85 03:04:22 EDT Article-I.D.: turtleva.756 Posted: Mon May 6 03:04:22 1985 Date-Received: Tue, 7-May-85 21:29:59 EDT References: <10365@brl-tgr.ARPA> Reply-To: ken@turtlevax.UUCP (Ken Turkowski) Distribution: net Organization: CADLINC, Inc. @ Menlo Park, CA Lines: 18 Summary: vi's ZZ is broken In article <10365@brl-tgr.ARPA> wmartin@brl-tgr.ARPA (Will Martin ) writes: >Sometimes, when running postnews, I want to save a copy of my posting >before submitting it. I am in vi, finishing the composition and editing. >I do ":w filename" and it works OK, and the screen still shows the text >of the posting. I then do "ZZ" and the system responds with: >"File not modified - no message posted" and then the shell prompt appears. The problem is not in postnews or any of the news software, but in vi itself. There are various circumstances under which "ZZ" will not write out a file before exiting. I lost several hours worth of editing this way, and haven't used the two-character "ZZ" command since, preferring the predictable behavior of the three-character sequence ":wq" instead. -- Ken Turkowski @ CADLINC, Menlo Park, CA UUCP: {amd,decwrl,hplabs,nsc,seismo,spar}!turtlevax!ken ARPA: turtlevax!ken@DECWRL.ARPA