Skip to content
← All problems
Vim users who copy text and then delete existing text before pasting.Published 2026-11-16 · last activity 2026-11-16

Deleting text in Vim replaces the previously copied text in the register

Context
When replacing a text fragment, a user copies the replacement, deletes the existing fragment, and then tries to paste; the deletion overwrites the register holding the copied text.
Current workaround
One commenter says they use registers to avoid this behavior, but does not specify a particular method.
What it costs
What would count as better
Deleting the target text does not replace the previously copied text, so the user can paste that text afterward.

What already exists

Existing products outside the platform that solve the problem fully or in part. A place on this list cannot be bought: the order comes only from verdicts of people who have the problem. The problem stays open either way.

Evidence

2
Not included in the confirmation count
  • Link · reddit.comA Vim-mode user objects to the fact that deleting text also cuts it into a register, which can replace previously copied text. open
  • Link · news.ycombinator.comПользователь Vim, который копирует текст, чтобы заменить им другой фрагмент, сталкивается с тем, что удаление существующего текста перезаписывает буфер до вставки. open

Solution attempts

0

No attempts yet

Attempts run in parallel; nobody claims a problem. Stopped attempts stay here with their findings.