LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-13-2009, 11:00 AM   #1
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Rep: Reputation: 15
Smile 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

Last edited by haochao; 03-13-2009 at 11:07 AM.
 
Old 03-13-2009, 12:10 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 03-14-2009, 03:23 AM   #3
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
Smile Thank you, it seems that my inference is correct

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)
 
Old 03-14-2009, 10:37 AM   #4
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Rep: Reputation: 22
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
 
Old 03-14-2009, 09:24 PM   #5
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Original Poster
Rep: Reputation: 15
Sorry,it is my typing mistake. Re-Say it again: in my vim on FC linux , i have not both "* and "+.This is the central issue i got.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy and paste things between vim and system clipboard grissiom Slackware 43 09-30-2013 02:23 AM
xfce vim and clipboard Panci Slackware 3 02-06-2009 03:22 AM
VIM Users: Do you use VIM via console or gui? JMJ_coder Linux - General 48 04-16-2008 03:12 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration