The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Clem Cole <clemc@ccc.com>
To: John Cowan <cowan@ccil.org>
Cc: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] v7 uucp debugging help requested
Date: Mon, 6 Jul 2020 16:48:24 -0400	[thread overview]
Message-ID: <CAC20D2NDO7FUrO5Xk6FxPLSMxUfH3XQHQQnici-X5Z9oxyF68w@mail.gmail.com> (raw)
In-Reply-To: <CAD2gp_Rrg+=KUeCtayVBssGiY46WjQk5c-pYrdODyJWcjo9VOQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1550 bytes --]

below...

On Mon, Jul 6, 2020 at 3:36 PM John Cowan <cowan@ccil.org> wrote:

>
> On Mon, Jul 6, 2020 at 3:19 PM <arnold@skeeve.com> wrote:
>
> Huh? I've never seen this, in over 20 years of using vim. To
>> insert a newline just use
>>
>>         s/foobar/foo^V^Mbar/
>>
>> where ^V^M are Control-V Control-M.
>>
>
> I never thought of that; I've always tried what works in ed, namely:
>
> s/foobar/foo\
> bar
>
need a closing / for ed, but ex/vi accepts the naked version.




>
> and that gives me
>
> foo^@bar
>
> I call that a bug.  (This is vim 8.1).
>
In fairness, early vi did this too.  nvi (Bostic's rewrite) which came out
around 4.3 or 4.4 fixed it.



>
> It certainly wouldn't occur to me to use ^V^M, anyhow:  ^V^J would seem
> more reasonable, but ^V is ignored in that context.
>
I agree, I have tried to us the ^V^J idiom with different success.  Since
vim has been forced down my throat, I tend to not try it, and as you say,
switch editors when I need to add a newline.

>
> Before vim 7 there was a bug so bad I had to use nvi (and, often enough,
> compile it from source): at that time, undo undid everything back to the
> last action in vi-mode.  If you had never been in vi-mode (as I usually had
> not) it undid everything back to the last file-loading command!  That one
> made me grind my teeth a lot.  Even now I habitually write before undoing,
> just in case.
>
Amen ...   vim's undo can be ...  a ... challenging for original vi user -
but that has been debated here a few times and I'd rather not see another
war.
Clem

[-- Attachment #2: Type: text/html, Size: 3597 bytes --]

  parent reply	other threads:[~2020-07-06 20:49 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-03 20:52 Adam Thornton
2020-07-03 21:26 ` Clem Cole
2020-07-03 22:38 ` Grant Taylor via TUHS
2020-07-04  0:28   ` Clem Cole
2020-07-04  0:31   ` Clem Cole
2020-07-04 19:33   ` Adam Thornton
2020-07-04 20:02     ` Clem Cole
2020-07-04 21:58       ` Adam Thornton
2020-07-05  5:42         ` Adam Thornton
2020-07-03 22:50 ` John Cowan
2020-07-04 16:33   ` Adam Thornton
2020-07-04 18:34     ` John Cowan
2020-07-04 18:44       ` Jon Forrest
2020-07-04 19:34       ` Adam Thornton
2020-07-06  4:12     ` Dave Horsfall
2020-07-06  4:18       ` Warner Losh
2020-07-06  6:51         ` arnold
2020-07-06  7:11           ` Michael Usher via TUHS
2020-07-06 13:57       ` Clem Cole
2020-07-06 18:51         ` John Cowan
2020-07-06 19:19           ` arnold
2020-07-06 19:36             ` John Cowan
2020-07-06 19:58               ` John Cowan
2020-07-06 20:48               ` Clem Cole [this message]
2020-07-07  6:21                 ` arnold
2020-07-10  5:05                 ` Win Treese
2020-07-10  5:19                   ` Warner Losh
2020-07-14  2:52                     ` Dave Horsfall
2020-07-06 21:47             ` Dave Horsfall
2020-07-07  6:23               ` arnold
2020-07-07 21:45                 ` Dave Horsfall
2020-07-06 21:18         ` Dave Horsfall
2020-07-06 21:47           ` John Cowan
2020-07-07  1:30         ` [TUHS] Editors (was: v7 uucp debugging help requested) Greg 'groggy' Lehey
2020-07-04  0:35 [TUHS] v7 uucp debugging help requested Norman Wilson
2020-07-07 19:20 Norman Wilson
2020-07-07 22:47 ` Rob Pike
2020-07-07 23:42   ` Adam Thornton

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=CAC20D2NDO7FUrO5Xk6FxPLSMxUfH3XQHQQnici-X5Z9oxyF68w@mail.gmail.com \
    --to=clemc@ccc.com \
    --cc=cowan@ccil.org \
    --cc=tuhs@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).