actually horst the ! terminating the command instructs vi to quit immediately without writing the file out.
//use vi, but only when trapped. On Nov 15, 2007 9:53 AM, horst <[EMAIL PROTECTED]> wrote: > > Date: Thu, 15 Nov 2007 01:30:12 -0800 > > From: larry price <[EMAIL PROTECTED]> > > Subject: Re: [Eug-lug] how do I get out of this? > > > > type > > > > [esc] > > : > > q > > ! > > > > that's one character to a line. > > Larry - I think emacs people shouldn't do vi posts past 1 in the morning :-) > > On a single line: > ! > doesn't mean anything (as far as I know, or you have redefined the !-key, > or...) > > :<cmd>! > means ignore warning and do it anyway! > (like :w! :x! as in write! --although file was opened as read-only) > ( '<cmd>' meaning 'w' or 'x' ) > > :!<cmd> > means execute shell <cmd> > > > Wes, BTW, my vi/vim's do provide you with a hint: > " No write since last change (add ! to override) " > > - Horst > > > > _______________________________________________ > EUGLUG mailing list > euglug@euglug.org > http://www.euglug.org/mailman/listinfo/euglug > _______________________________________________ EUGLUG mailing list euglug@euglug.org http://www.euglug.org/mailman/listinfo/euglug