Groups | Search | Server Info | Login | Register


Groups > comp.editors > #106862

Re: Vi: is there any way not to yank text I'm deleting?

From Anthony Howe <achowe@snert.com>
Newsgroups comp.editors
Subject Re: Vi: is there any way not to yank text I'm deleting?
Date 2026-02-17 05:53 -0500
Organization A noiseless patient Spider
Message-ID <10n1ham$1mgl9$1@dont-email.me> (permalink)
References <10n027u$187f4$1@dont-email.me> <10n031b$18euo$1@dont-email.me> <10n05li$3tuuv$2@dont-email.me>

Show all headers | View raw


On 2026-02-16 17:28, Janis Papanagnou wrote:
>> Use "_dd and similar to not put the deleted text in a register.
>> See :h "_
> 
> Do you know whether that register was existing in classical Vi ?
> (I don't think so but, frankly, I don't recall and I'm curious.)

The "a .. "z and "1 .. "9 buffers are part of historical `ex` and `vi`, see SUS 
https://pubs.opengroup.org/onlinepubs/9799919799/ buffer definition.

I used to work on Mortice Kern Systems maintaining their DOS `vi` while we were 
balloting POSIX.2. The named buffers were part of the historical `vi` and the 
MKS independent clone.

As for the OP, deleting / changing always included a yank into the numeric 
buffers.  That is historical behaviour and documented in SUS.

-- 
Anthony C Howe
achowe@snert.com                              BarricadeMX & Milters
http://nanozen.snert.com/              https://github.com/SirWumpus

Back to comp.editors | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Vi: is there any way not to yank text I'm deleting? swapjim <swapjim@example.org> - 2026-02-16 23:29 +0200
  Re: Vi: is there any way not to yank text I'm deleting? Rene Kita <mail@rkta.de> - 2026-02-16 21:43 +0000
    Re: Vi: is there any way not to yank text I'm deleting? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-02-16 23:28 +0100
      Re: Vi: is there any way not to yank text I'm deleting? Rene Kita <mail@rkta.de> - 2026-02-17 07:42 +0000
      Re: Vi: is there any way not to yank text I'm deleting? Anthony Howe <achowe@snert.com> - 2026-02-17 05:53 -0500
        Re: Vi: is there any way not to yank text I'm deleting? gazelle@shell.xmission.com (Kenny McCormack) - 2026-02-17 14:08 +0000
          Re: Vi: is there any way not to yank text I'm deleting? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-02-17 17:41 +0100
  Re: Vi: is there any way not to yank text I'm deleting? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-02-16 23:20 +0100
  Re: Vi: is there any way not to yank text I'm deleting? Jason H <jason_hindle@yahoo.com> - 2026-02-17 22:42 +0000
    Re: Vi: is there any way not to yank text I'm deleting? Jason H <jason_hindle@yahoo.com> - 2026-02-17 22:49 +0000
  Re: Vi: is there any way not to yank text I'm deleting? Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2026-02-18 13:34 +0000

csiph-web