Friday, January 11, 2013

Re: How to paste register over visual selection?

On 01/11/13 19:39, stosss wrote:
> On Fri, Jan 11, 2013 at 8:32 PM, Tim Chase <vim@tim.thechases.com> wrote:
>> On 01/11/13 19:26, skeept wrote:
>>> If I have something stored in a specific register say register z
>>> and select something visual then I try to paste over it with "zp
>>> but this doesn't seem to do anything...
>
> Unless I am totally missing something "zp won't replace what is in
> that register. "zyy or "zY would do that.


The OP said that they already have the contents in the register. So
I assumed they had already done something like

"zY

to populate the register, then selected something using v/V/^V and
then used

"zp

to paste over the the visual selection with the contents of the "z"
register.

That's the way it's supposed to work, so if the OP isn't seeing that
behavior, something is likely interfering.

-tim




--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: