Having a chunk of text selected in Vim's visual mode, I'd like to copy that to the system's clipboard (be it the primary or X11's). Is there an easy solution for this? Obviously, a simple y doesn't do the trick.

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

you have to yank it to the clipboard register

"*y

:help registers will tell you more about that.

link|improve this answer
In my case, "+y copies to the "Ctrl-V" accessible clipboard. Thanks for the hint! – Boldewyn Mar 12 '10 at 11:22
well, keep the 2 buffers in sync with nongnu.org/autocutsel ... in the help of vim the diffs between the 2 clipboard mechanisms is explained as well. but since you are happy already ... :) – akira Mar 12 '10 at 11:33
feedback

Your Answer

 
or
required, but never shown

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