I'm using GVim 9.1 on Windows to learn traditional Vi by setting 'set compatible' in the vimrc file.
I then select some text using 'v' and delete it using x. However, this
also copies the text (yanks it). Same thing happens when I try to delete
a few lines with 10dd or 10dw.
Is this normal behavior? If yes, is there a way to not to yank the text
I'm deleting?
Is this perhaps Vim behavior? The Vi bundled with BusyBox that runs on
my router also yanks text it deletes.
[...]
I then select some text using 'v' and delete it using x. However, this
also copies the text (yanks it). Same thing happens when I try to delete
a few lines with 10dd or 10dw.
Is this normal behavior?
If yes, is there a way to not to yank the text I'm deleting?
[...]
swapjim <swapjim@example.org> wrote:
I'm using GVim 9.1 on Windows to learn traditional Vi by setting 'set
compatible' in the vimrc file.
Use "_dd and similar to not put the deleted text in a register.
See :h "_
On 2026-02-16 22:43, Rene Kita wrote:
swapjim <swapjim@example.org> wrote:
I'm using GVim 9.1 on Windows to learn traditional Vi by setting 'set
compatible' in the vimrc file.
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.)
Janis
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.)
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 behavior and documented in SUS.
In article <10n1ham$1mgl9$1@dont-email.me>,
Anthony Howe <achowe@snert.com> wrote:
[...]
Right. But since we are in this general area and not to change the subject but to change the subject, let me add that I have never been able to figure out the logic of the numbered buffers. I've never seen a good explanation
of why they are there and how you might use them to your benefit. And
every time I've tried to use them, things are not where I expect them to
be. That is, when I do the "registers" command (in Vim), the contents of
the numeric buffers always seems random/unpredictable to me.
I'm using GVim 9.1 on Windows to learn traditional Vi by setting 'set >compatible' in the vimrc file.
I then select some text using 'v' and delete it using x. However, this
also copies the text (yanks it). Same thing happens when I try to delete
a few lines with 10dd or 10dw.
Is this normal behavior? If yes, is there a way to not to yank the text
I'm deleting?
Is this perhaps Vim behavior? The Vi bundled with BusyBox that runs on
my router also yanks text it deletes.
On 16/02/2026 21:29, swapjim wrote:
I'm using GVim 9.1 on Windows to learn traditional Vi by setting 'set >>compatible' in the vimrc file.
I then select some text using 'v' and delete it using x. However, this >>also copies the text (yanks it). Same thing happens when I try to delete
a few lines with 10dd or 10dw.
Is this normal behavior? If yes, is there a way to not to yank the text >>I'm deleting?
Is this perhaps Vim behavior? The Vi bundled with BusyBox that runs on
my router also yanks text it deletes.
If it's to avoid yanking data you're putting over, shift-P should do the
trick.
I'm using GVim 9.1 on Windows to learn traditional Vi by setting 'set compatible' in the vimrc file.
I then select some text using 'v' and ...
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 20:55:48 |
| Calls: | 810 |
| Calls today: | 1 |
| Files: | 1,287 |
| D/L today: |
11 files (21,026K bytes) |
| Messages: | 194,568 |