The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Bakul Shah <bakul@bitblocks.com>
To: Mary Ann Horton <mah@mhorton.net>
Cc: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] screen editors
Date: Wed, 8 Jan 2020 21:27:02 -0800	[thread overview]
Message-ID: <70DD8BD7-DF59-4C8D-9611-815B83A18106@bitblocks.com> (raw)
In-Reply-To: <1442b5d7-12af-86ef-c7de-fa92f848d5ce@mhorton.net>

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 <mah@mhorton.net> wrote:
> 
> 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@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@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@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).


  reply	other threads:[~2020-01-09  5:27 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08  9:46 Rudi Blom
2020-01-08 14:15 ` Chet Ramey
2020-01-08 15:15   ` Steffen Nurpmeso
2020-01-08 15:42     ` Steve Mynott
     [not found]     ` <68b3d6df-94f6-625d-39bf-6149b4c177c9@andrewnesbit.org>
2020-01-08 20:56       ` Steffen Nurpmeso
2020-01-08 23:21   ` Dave Horsfall
2020-01-09  0:08     ` Warner Losh
2020-01-09  1:28       ` Larry McVoy
2020-01-09  1:40         ` Bakul Shah
2020-01-09  2:04           ` Clem Cole
2020-01-09  2:07             ` Larry McVoy
2020-01-09  2:12               ` Clem Cole
2020-01-09  2:59                 ` Bakul Shah
2020-01-09  3:08                   ` Larry McVoy
2020-01-09  3:43                     ` Bakul Shah
2020-01-09  3:27                 ` Mary Ann Horton
2020-01-09  3:34                   ` Larry McVoy
2020-01-09  3:49                   ` Bakul Shah
2020-01-09  3:55                     ` Mary Ann Horton
2020-01-09  5:27                       ` Bakul Shah [this message]
2020-01-09  4:23                 ` Jon Steinhart
2020-01-09 15:54                   ` Clem Cole
2020-01-09 17:21                     ` Jon Steinhart
2020-01-09 17:30                       ` Warner Losh
2020-01-09 17:45                         ` [TUHS] screen editors and beyond Jon Steinhart
2020-01-09 17:56                       ` [TUHS] screen editors Bakul Shah
2020-01-18  2:11                         ` Michael Parson
2020-01-09 18:53                       ` Larry McVoy
2020-01-09 19:01                         ` Jon Steinhart
2020-01-09 19:02                     ` Steffen Nurpmeso
2020-01-09 19:19                       ` Steffen Nurpmeso
2020-01-09 20:20                     ` Mary Ann Horton
2020-01-18  2:06                   ` Michael Parson
2020-01-18  3:13                     ` Clem Cole
2020-01-18  3:44                       ` Kurt H Maier
2020-01-18 15:37                       ` Larry McVoy
2020-01-18 22:11                         ` markus schnalke
2020-01-09  2:14         ` Greg 'groggy' Lehey
2020-01-09  2:48           ` Chet Ramey
2020-01-09  9:05       ` Thomas Paulsen
2020-01-08 15:11 ` Nemo Nusquam
2020-01-08 15:37   ` Henry Bent
2020-01-18 14:22   ` Michael Parson
  -- strict thread matches above, loose matches on Subject: below --
2020-01-26 20:32 [TUHS] Screen editors Paul Ruizendaal
2020-01-26 23:14 ` Thomas Paulsen
     [not found] <20200120155946.169b39e0.ref@sagittariusa.cnb.csic.es>
2020-01-20 14:59 ` Jose R. Valverde via TUHS
2020-01-20 16:07   ` Toby Thain
2020-01-20 16:20     ` Larry McVoy
2020-01-31 18:21       ` Jose R. Valverde via TUHS
2020-01-29 22:24     ` Dave Horsfall
2020-01-29 22:33       ` Larry McVoy
2020-02-07 23:05         ` Dave Horsfall
2020-02-07 23:54           ` Richard Salz
2020-02-08  3:11             ` Dave Horsfall
2020-02-08  3:38               ` Ronald Natalie
2020-02-08  0:05           ` Bakul Shah
2020-01-29 23:00       ` Thomas Paulsen
2020-01-26 18:28   ` arnold
2020-01-26 18:33     ` Adam Thornton
2020-01-26 18:36       ` arnold
2020-01-26 18:40       ` arnold
2020-01-26 19:11         ` Adam Thornton
2020-01-26 19:40     ` Jon Forrest
2020-01-26 20:08     ` Chet Ramey
2020-01-09 21:46 [TUHS] screen editors Norman Wilson
2020-01-09 22:10 ` Brantley Coile
2020-01-08  7:39 Thomas Paulsen
2020-01-08 15:58 ` Steve Nickolas
2020-01-08 23:41   ` Dave Horsfall
2020-01-09  1:43     ` Nemo Nusquam
2020-01-08 21:49 ` Dave Horsfall
2020-01-08 22:01   ` Clem Cole
2020-01-17 23:38     ` Dave Horsfall
2020-01-18  0:07       ` Ryan Casalino
2020-01-18 23:02       ` greg travis
2020-01-10  8:13   ` markus schnalke
2020-01-10  8:17     ` U'll Be King of the Stars
2020-01-11 19:58       ` markus schnalke
2020-01-11 20:54         ` Derek Fawcus
2020-01-11 21:27         ` Henry Bent
2020-02-04  8:40         ` Sijmen J. Mulder
2020-01-10 15:31     ` Nemo Nusquam
2020-01-10 16:04       ` Clem Cole
2020-01-10 17:10       ` Dan Cross
2020-01-10 17:18         ` Steve Nickolas
2020-01-18  1:55           ` Michael Parson
2020-01-10 15:58     ` Theodore Y. Ts'o
2020-01-07 19:57 Doug McIlroy
2020-01-07 20:17 ` Brantley Coile
2020-01-07 20:47 ` Bakul Shah
2020-01-07  2:31 Doug McIlroy
2020-01-07  2:37 ` Brantley Coile
2020-01-07  2:38 ` Larry McVoy
2020-01-07 16:30   ` arnold
2020-01-07 16:38     ` Richard Salz
2020-01-07 18:32     ` Dan Cross
2020-01-07 19:14     ` Thomas Paulsen
2020-01-09  5:01       ` Grant Taylor via TUHS
2020-01-10  8:16         ` ricercar
2020-01-08  0:10     ` Jon Steinhart
2020-01-17 22:06       ` Dave Horsfall
2020-01-08 18:30     ` Mary Ann Horton
2020-01-08 21:41       ` Thomas Paulsen
2020-01-09  8:30       ` arnold
2020-01-07  6:19 ` Dave Horsfall
2020-01-07  8:24   ` Thomas Paulsen
2020-01-07 20:44     ` Dave Horsfall
2020-01-08 15:29   ` Steve Mynott
2020-01-08 23:31     ` Dave Horsfall
2020-01-07  9:43 ` ullbeking
2020-01-07 14:53   ` Dan Cross
2020-01-07 19:35   ` Rodrigo G. López
2020-01-08  5:13     ` Mark van Atten
2020-01-07 15:03 ` Clem Cole
2020-01-07 15:50 ` Thomas Paulsen
2020-01-07 20:45   ` Chet Ramey
2020-01-07 21:20     ` Derek Fawcus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=70DD8BD7-DF59-4C8D-9611-815B83A18106@bitblocks.com \
    --to=bakul@bitblocks.com \
    --cc=mah@mhorton.net \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).