From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 64734b88 for ; Thu, 9 Jan 2020 05:27:43 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 7B4CD9BCD1; Thu, 9 Jan 2020 15:27:41 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id BAC699BCA9; Thu, 9 Jan 2020 15:27:20 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 816739BCA9; Thu, 9 Jan 2020 15:27:18 +1000 (AEST) Received: from mail.bitblocks.com (ns1.bitblocks.com [173.228.5.8]) by minnie.tuhs.org (Postfix) with ESMTP id 042B8945FC for ; Thu, 9 Jan 2020 15:27:18 +1000 (AEST) Received: from mob.bitblocks.com (mob.bitblocks.com [192.168.125.11]) by mail.bitblocks.com (Postfix) with ESMTP id 9FF05156E42D; Wed, 8 Jan 2020 21:27:03 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Bakul Shah In-Reply-To: <1442b5d7-12af-86ef-c7de-fa92f848d5ce@mhorton.net> Date: Wed, 8 Jan 2020 21:27:02 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <70DD8BD7-DF59-4C8D-9611-815B83A18106@bitblocks.com> References: <20200109012830.GC16808@mcvoy.com> <20200109020720.GG16808@mcvoy.com> <4b810af6-1880-92c2-ef22-4029643d5225@mhorton.net> <2314D256-9C93-4496-B983-28DE4880F625@bitblocks.com> <1442b5d7-12af-86ef-c7de-fa92f848d5ce@mhorton.net> To: Mary Ann Horton X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [TUHS] screen editors X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Short answer: there is no special case in nvi. P or p put back the contents of the last delete. u undoes whatever was the last change (including the last undo or redo). . repeats whatever was the last modifying command. A detailed answer would merely confuse you. At least my attempt at it! Suggest you try out various combinations in nvi and compare with vim. > On Jan 8, 2020, at 7:55 PM, Mary Ann Horton wrote: >=20 > Are you referring to the special case where an undo of "p" (put) will = sucessively re-insert the most recent things you've deleted? >=20 > I just tried that in vim and it didn't seem to support the special = case the way vi did. >=20 > Mary Ann >=20 > On 1/8/20 7:49 PM, Bakul Shah wrote: >> It doesn=E2=80=99t 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. >>=20 >>> On Jan 8, 2020, at 7:27 PM, Mary Ann Horton wrote: >>>=20 >>> vim has an option to undo the vi way. "set cpoptions=3Du". 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. >>>=20 >>> 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 ;-) >>>>=20 >>>>=20 >>>>=20 >>>> On Wed, Jan 8, 2020 at 9:07 PM Larry McVoy 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 = wrote: >>>>>=20 >>>>>> 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. >>>>=20 >>>> 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).