Vi bug: saves too often

Lenny Tropiano lenny at icus.islp.ny.us
Sun Apr 2 16:11:52 AEST 1989


In article <10671 at stb.UUCP> michael at 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 at 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



More information about the Unix-pc.general mailing list