My vim is version 8.2, And i tested it. Only use 'P' from visual model
didn't prevet changing the unamed register. Anyway, Maybe my verions
isn't the newest.
regards
Wenxin
On Thu, 10 Aug 2023, Christian Brabandt wrote:
On Do, 10 Aug 2023, Tim Chase
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
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,
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
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