Monday, April 1, 2013

Re: Register overwritten only when clipboard=unnamed

PARK, Kyung-Kook wrote:
> On Saturday, March 30, 2013 3:03:45 AM UTC+9, Bee wrote:
>> On Mar 29, 8:26 am, <kyu...@gmail.com> wrote:
>>
>>> I am trying to copy & paste a word under the cursor.
>>
>>
>> Are you trying to 'exchange' the word under the cursor with the one on
>>
>> the clipboard?
>>
>>
>>
>> What version of vim?
>>
>> What platform: Windows, Linux, Mac ?
>>
>>
>>
>> Bill
> I am using gVim 7.3 on Windows x64 platform.
>
> Yes, I want to replace a word at the cursor position by
> another word yanked from a different position.
>
Then you might like visswap.vim.

You can get visswap from:

http://www.drchip.org/astronaut/vim/index.html#VISSWAP

Quick overview: swapping text using visual mode

Use visual mode (any of the three) to select some text; press ctrl-y .
Use visual mode (any of the three) to select some other text; press
ctrl-x .

I think of ctrl-y as my "yank" step and ctrl-x as my "exchange" step.

To install if you're using vim7.1 or later:

Install a new version of visswap:
vim visswap.vba.gz
:so %
:q

Regards,
C Campbell

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment