Tuesday, February 22, 2011

Re: Copy/delete/paste strategy?

On 02/22/2011 04:42 PM, David Fishburn wrote:
>
> On 2/21/2011 11:41 AM, David Kahn wrote:
>> Relatively new to vim. I know there are other ways to do this specific
>> task such as search/replace but I want to understand how to repeatedly
>> paste some text but also overwrite a certain character, in the case I
>> want to do it manually. This has brought me to need to understand if
>> there is a sort of clipboard/yank history.
>
> Where it may not help in this particular example, you may be interested
> in a general Copy/delete/paste strategy for Vim.
>
> If that is the case, you may want to look into my YankRing plugin:
> http://www.vim.org/scripts/script.php?script_id=1234
>
> Besides the description on the website, it comes with a full tutorial to
> take you through the various features, to give you an idea of how to use it.
>
> HTH,
> Dave
>

I use your plugin and it's very nice, thank you, I have a small comment
/ question: it disables a useful idiom for exchanging two chunks of
text, e.g.:

(word1, word2) => delete word1, visually select word2, 'p' to paste
over it, '2b' to go back, P to paste word2.

Is there some trick or an option to have it work with YankRing?

thanks! -Rainyday

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