Are you referring to the special case where an undo of "p" (put) will
sucessively re-insert the most recent things you've deleted?
I just tried that in vim and it didn't seem to support the special case
the way vi did.
Mary Ann
On 1/8/20 7:49 PM, Bakul Shah wrote:
It doesn’t work the same way. I just tried it
(vim-8.0.something).
The way it is supposed to work is this: the first u undoes the last change.
Then you keep hitting . to keep undoing more. Then if you went back too far,
you hit u again, to undo the undo and further . will keep redoing. You can
go back and forth this way as many times as you wish.
> On Jan 8, 2020, at 7:27 PM, Mary Ann Horton <mah(a)mhorton.net> wrote:
>
> vim has an option to undo the vi way. "set cpoptions=u". There is a full
set of vi-compatible options if you want them. "set cp" turns on full vi
compatiblity.
> Funny, I see vim as the vi that comes with UNIX, and never learned the enhancements,
but I just tried it out and I don't have the compatibility option set. I don't
seem to have noticed. I guess I don't do the "undo toggle" all that often.
>
> Mary Ann
> On 1/8/20 6:12 PM, Clem Cole wrote:
>> make a new command, don't break the old one.... maybe offer a way to map
the new one over the old -- but don't make it the default.
>> and my lawn was lush and green before the snow came ;-)
>>
>>
>>
>> On Wed, Jan 8, 2020 at 9:07 PM Larry McVoy <lm(a)mcvoy.com> wrote:
>> On Wed, Jan 08, 2020 at 09:04:46PM -0500, Clem Cole wrote:
>>> On Wed, Jan 8, 2020 at 8:41 PM Bakul Shah <bakul(a)bitblocks.com> wrote:
>>>
>>>> The first thing I do on a new machine is to install nvi. Very grateful
to
>>>> Keith Bostic for implementing it. I do use multiple windows ??? only
>>>> horizontal splits but that is good enough for me as all my terminal
>>>> windows are 80 chars wide. Not a vim hater but never saw the need.
>>> I pretty much do the same thing. I think what I hate about vim is that
it's
>>> almost, vi but not the same. My fingers screw up when I use it. For
>>> instance, he 'fixed' undo.
>> Holy crap Clem, you need to embrace that. His undo goes back forever.
>> And you can undo the undo and go forward forever.
>>
>> Not liking that puts you in the "get off my lawn" old guy camp. Which
>> is fine if that's who you want to be (sometimes I'm that guy).