How to copy selected lines to clipboard in vim. I know how to do it for all text files, but I want to do in for selected lines.
Thanks!
How to copy selected lines to clipboard in vim. I know how to do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SHIFTV puts you in select lines mode. Then "+y yanks the currently selected lines to the
+register which is the clipboard. There are quite a few different registers, for different purposes. See the section onselection and drop registersfor details on the differences between*and+registers on Windows and Linux. Note that there is only a distinction between "* and "+ for X11 systems. Under MS-Windows, use of "* and "+ is actually synonymous and refers to the gui-clipboard. So, on windows*(sharp) register can be used as well: "*y