Hi David!

On Do, 18 Feb 2016, David Fishburn wrote:

>     ...
> 
>  
> 
>     > In the following code snippet I'm trying to replace parameter name from
>     param to value, using dot register (last inserted text):
>     >
>     > function execute(param){
>     >   var result = param.paramProcessing();
>     >
>     > 1. I place the cursor on the in first occurence of param (in the
>     brackets)
>     > 2. I type `ciwvalue<ESC>` to replace param with value, and move value
>     into dot register
>     > 3. I go to second param occurence
>     > 4. I type `viw".p` to select param, and replace it with value
>     >
>     > As you can see during reproduction, step #4 instead of word replacement,
>     causes removal of word 'param', and leaves me in visual mode.
> 
> 
> 
> I can't for the life of me find this now, but I think I have run into this 
> same
> problem before.  It really annoys me and someone (thought it was Christian)
> pointed out there is an option to control this behaviour.
> 
> Basically when you visually select text, and then paste over it, the visually
> selected text (which was just replaced) is moved into the default register.  I
> personally don't want the default register changed, as I want to continue
> pasting it in other spots.
> 
> There is an option to turn it off, but after 15 minutes of looking I can't 
> find
> it.
> I thought it was cpoptions or guioptions, but my search and tests were
> fruitless.
> 
> Does this stir anyone's memory?

Hm, I think it is the 'a' flag in the guioptions possibly in combination 
with 'unnamedplus' value in the clipboard setting.

Mit freundlichen Grüßen
Christian
-- 
Hallo Beilagenesser!

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui