Well, vi has a compatibility mode, which makes it behave like vanilla vi.
But vim is soooo much better, that I've long since forgotten the details
---except for the key one that fubar-ing a file makes :q! your savior.

Cheers,
        -Dan

On 10 Mar 2011, at 21:16, bill lam wrote:

> Yes, that may be a bug in vi. I use nvi which claimed to be bug-for-bug
> compatible with the original vi.
> 
> Sometimes I found vim saying oldest changes by repeated undo, yet
> it prompted for saving for :q and must quit with :q!
> 
> Чтв, 10 Мар 2011, Dan T. Abell писал(а):
>> Hmmm. Most vi now seems to be vim, and vim definitely
>> recognizes undo---to the point that if you undo all
>> changes, it does *not* insist that you save on exit.
>> 
>> 
>> On 10 Mar 2011, at 16:26, bill lam wrote:
>> 
>>> I think this is expected, because dirty flag is set if any editing has
>>> happened, and dirty flag is not reset by undo.  At least vi also behaves
>>> in the same manner.
>> 
>> --
>> Dan T. Abell :: dabell at txcorp dot com :: 303.444.2452
>> Tech-X Corp., 5621 Arapahoe Ave, Ste A, Boulder CO 80303
>> http://www.txcorp.com :: 303.748.6894/c  303.448.7756/fx
>> 
>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> -- 
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

--
Dan T. Abell :: dabell at txcorp dot com :: 303.444.2452
Tech-X Corp., 5621 Arapahoe Ave, Ste A, Boulder CO 80303
http://www.txcorp.com :: 303.748.6894/c  303.448.7756/fx


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to