Say I've got a URL in the clipboard, I enter vim, I hit <C-Q> and highlight a word. Then I hit I<C-R>+ to insert the clipboard at the start of the selection.

What actually happens is the word that I had highlighted gets inserted, instead of the URL I was expecting.

I've got clipboard=, selectmode=key, virtualedit=block. I can't find any other setting I might have enabled to do this. I've confirmed that :reg + shows the URL and then changes after I highlight the word.


1 Answer 1


Removing a from the list of guioptions was the answer. Change it from set guioptions=ac to only set guioptions=c.

Credit to carpetsmoker in the comments here Can visual select mode be integrated with the Unix selection clipboard?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.