I don't know what the vim use the clipboard with ?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't know what the vim use the clipboard with ?
First ,sorry for my non-idiomatic english .
when I‘m copied info into vim from another app, i found no '"+' or '"+' register existing by using command ":reg".this mean i can't get through this copying.with consider a moment,i focus this on X11 that doesn't the copying from app use different clipboard of X11.i think vim use another one.
is there way to resolve this ?and better to explain this detaiedly.thanks
To paste into vim (or any vi style editor) you need to be in "insert" mode then do the paste. Also you need to do the insert at the point you wish to do the paste.
There are various ways to start insert mode. "i" is simple insert mode starting at present position. "o" is insert starting at a new line below current one. "O" is insert starting a new line above the current one.
Pasting method once in insert mode depends on the terminal technology you're using. For example with a two button mouse in a PuTTY terminal window or an Xterm I simply click the right mouse button. On a three button mouse it might be click on the middle button. Some term types require you to right click and select "paste".
I regularly paste things from my Windows applications into my PuTTY windows into Linux/UNIX boxes using the the right button. Similarly if I want to copy from Linux/UNIX to Windows I can simply do a highlight of text to put it in the buffer for PuTTY then use "ctrl-V" in the Windows app to do paste.
Thank you. it seems that my inference is correct and the only solution is to modify the buffer with which terminal used, or special tools.(if there be,then tell me)
If I am not mistaken, the buffer for "outside of vi" is "* (double-quote-star) and not "+.
So, you select text in another app and copy it. Then move to your vim window, press "esc" two times, move the cursor where you want to insert and press
:"*p
(colon-double quote-star-letter p)
and that should be it.
"* is the buffer
p is the paste command.
If you want to copy from vim, you select the text and go
:"*y
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.