On 4/05/11 11:35 PM, Andrew Neil wrote:
Is there any way to prevent the default register from being clobbered
when using the paste command in visual mode?

By default, when you use the `p` or `P` commands in visual mode, the
selected text overwrites the default register. Is there any way that
you can instruct Vim to write that text to another register?

Not directly. To do that, you'd have to use separate delete and put
commands. I suppose you could probably make a mapping. It could become a
bit complicated dealing with edge cases, but I suppose you could make it
work with a bit of effort. Maybe some wizard will chip in....

Smiles,

Ben.



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

Reply via email to