Ted Pavlic wrote:
> I've looked in:
>
> :help v_p
> :help registers
>
> and I cannot find this behavior documented, and so I wonder if it's a bug.
>
> If I visually select a block and hit "p" to paste from the unnamed
> buffer, the block I'm overwriting gets put into the unnamed buffer.
> There are two strange consequences of this:
>
> 1. If I need to make several replacements down my file, I have to do a
> new copy between each replacement (or use a new buffer).
>
> 2. If I select the same block over and over again, hitting "p" will
> toggle the block back and forth from its old state to its new state.
>
> Is this the desired behavior? If so, shouldn't it be documented?
>
> Also, is there any way to disable this behavior? I'm happier knowing
> that only "d", "c", "s", 'x", and "y" put things into the unnamed buffer.
No, it cannot be disabled. Deleted text always has to go somewhere.
I agree that this isn't easy to understand. Let me add this text to the
help:
The previously selected text is put in the unnamed register. If
you want to put the same text into a Visual selection several
times you need to use another register. E.g., yank the text to
copy, Visually select the text to replace and use "0p . You can
repeat this as many times as you like, the unnamed register will
be changed each time.
--
hundred-and-one symptoms of being an internet addict:
128. You can access the Net -- via your portable and cellular phone.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---