Friday, January 11, 2013

Re: How to paste register over visual selection?

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...
>>
>> Is there a easy way of accomplishing this?
>
>
> This seems peculiar, as you're doing it right. Do you see the same behavior
> when you start vim with
>
> vim -u NONE file.txt
>
> to eliminate startup scripts/settings?
>
> Alternatively, I presume you're well aware of the contents, but if you paste
> over the selection with the same contents (i.e., if the contents of the "z"
> register are the same as what you're pasting over, it would look like a
> noop).
>
> Also, are you using Visual mode (v/V/^V), or are you using the Selection
> mode (I never use this, so I can't tell you much about entering it)? The
> pasting works in Visual mode, but I don't know what it does in Selection
> mode. However you comment that you "select something in *visual*", so I'm
> presuming you're doing that right.
>

Unless I am totally missing something "zp won't replace what is in
that register. "zyy or "zY would do that.

--
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: