Assume I've copied some text into the clipboard from another program. I'm on MacOS, so in Vim terms, this means the text is in the
* registers (I have verified this using
:registers). I use
clipboard=unnamed because it makes it easier to copy text out of Vim. However, let's say I have this buffer:
someFunctionCall(blah, more blah, other blah) ^---- cursor position
Let's say I want to change all the text inside the parentheses to the contents of the clipboard (perhaps
new blah, more new blah). I can type
ci(, but this immediately puts
blah, more blah, other blah into the clipboard instead, wiping out what's already in the clipboard.
Is there an elegant, or reasonably elegant, way to do this? I'd ideally like to do this without using plugins.