Xref: utzoo comp.sys.att:6022 unix-pc.general:2583 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!xanth!uunet!nwnexus!happym!rwing!pat From: pat@rwing.UUCP (Pat Myrto) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: Vi bug: saves too often Summary: stopping the autowrite with UNIXPC vi Message-ID: <679@rwing.UUCP> Date: 2 Apr 89 20:27:02 GMT References: <10671@stb.UUCP> Organization: Very Little Organization, Seattle WA Lines: 17 In article <10671@stb.UUCP>, michael@stb.UUCP (Michael) writes: > Does anyone have a way to stop vi from saving a file if you use a shell > escape or if you type :n? The reason vi is behaving as you describe is because you have the autowrite feature on. In the .kshrc file a line sets EXINIT to 'set ai aw sm' or there is a similar line in your .exrc file. You simply need to remove the 'aw' from that line, or from a 'set' command in the .exrc file if one is used. Or you can issue from within vi the command 'set noaw' if you simply want to turn the feature off for the one editing session. Hope this helps. -- Pat Myrto @ Seattle, WA UUCP: {backbones} ...!uunet!nwnexus!happym!rwing!pat "Travelling unarmed is like boating without a life jacket"