Xref: utzoo comp.sys.att:6015 unix-pc.general:2576 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!cos!hqda-ai!icus!lenny From: lenny@icus.islp.ny.us (Lenny Tropiano) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: Vi bug: saves too often Message-ID: <652@icus.islp.ny.us> Date: 2 Apr 89 06:11:52 GMT References: <10671@stb.UUCP> Reply-To: lenny@icus.islp.ny.us (Lenny Tropiano) Organization: ICUS Software Systems, Islip, New York Lines: 22 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? |> |>Normally vi will not save a file out unless you say :w. On other systems |>if you say :n, you will be told "Has been modified--use :n!"; if you |>say :!, you will be told "[modifications not written out]". On the |>unix-pc, both of these will write it out even if you didn't want it to. |> Yes, stick this in your ~/.exrc file. set noautowrite -or- set noaw Then you'll get your desired effect. -Lenny -- Lenny Tropiano ICUS Software Systems [w] +1 (516) 582-5525 lenny@icus.islp.ny.us Telex; 154232428 ICUS [h] +1 (516) 968-8576 {talcott,decuac,boulder,hombre,pacbell,sbcs}!icus!lenny attmail!icus!lenny ICUS Software Systems -- PO Box 1; Islip Terrace, NY 11752