Re: Prevent copying of pasted-over text to register.

2023-08-10 Thread Christian Brabandt
On Do, 10 Aug 2023, Tim Chase wrote: > The typical way is to yank the text you want which puts it in the > "0 register, and you can then paste that over visual selections > explicitly with > > "0p > > which doesn't overwrite the "0 register, so you can do that multiple > times. With some

Re: Prevent copying of pasted-over text to register.

2023-08-10 Thread Tim Chase
On 2023-08-10 03:37, DwigtArmyOfChampions wrote: > I have some text in my register and I want to overwrite some > existing text with the contents of the register. So I go into > visual mode and highlight the text I want to replace, then I > type P and the contents of the register get replaced. OK,

Re: Prevent copying of pasted-over text to register.

2023-08-10 Thread Alessandro Antonello
Hy, my friend. The Vim unnamed register is used to store any text yanked or deleted using the normal mode mappings like "d", "c", "s" or "x". If you need to keep the text you yanked to use it several times, you need to place it in a "named" register. For example, selecting a word, or sequence of

Prevent copying of pasted-over text to register.

2023-08-10 Thread DwigtArmyOfChampions
Using Vim 8.1. I have some text in my register and I want to overwrite some existing text with the contents of the register. So I go into visual mode and highlight the text I want to replace, then I type P and the contents of the register get replaced. OK, but why is the replaced text now in my