Paste text into vi file? | Unix Linux Forums | OS X (Apple)

  Go Back    


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

Paste text into vi file?

OS X (Apple)


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-03-2012
palex palex is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 19 June 2014, 6:43 PM EDT
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
Paste text into vi file?

Hello,
I'm running OS X 10.7.4.
How can I paste text from the pasteboard into an open vim file?

Thanks!
Sponsored Links
    #2  
Old 08-03-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 23 November 2014, 2:13 PM EST
Location: Saskatchewan
Posts: 19,909
Thanks: 845
Thanked 3,415 Times in 3,200 Posts
Make sure vim is in insert mode, then use the paste option in the terminal?
Sponsored Links
    #3  
Old 08-03-2012
palex palex is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 19 June 2014, 6:43 PM EDT
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
Vim is in insert mode. Where is there a paste option? X11 is XQuartz 2.6.4.
    #4  
Old 08-03-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 23 November 2014, 2:13 PM EST
Location: Saskatchewan
Posts: 19,909
Thanks: 845
Thanked 3,415 Times in 3,200 Posts
Oh, you're running a graphical version of vim in X11? Try middle-clicking.
Sponsored Links
    #5  
Old 08-03-2012
palex palex is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 19 June 2014, 6:43 PM EDT
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
No, there is no GUI. And how would one middle click on a Mac?
Sponsored Links
    #6  
Old 08-03-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 23 November 2014, 2:13 PM EST
Location: Saskatchewan
Posts: 19,909
Thanks: 845
Thanked 3,415 Times in 3,200 Posts
You're not using X11 at all, then. OSX's usual graphical system has nothing to do with X11.

If you needed to middle-click, I think OSX has ways to emulate that, but if you're not using X11 that's neither here nor there.

paste should be one of the options under 'edit' across the top of the screen.
Sponsored Links
    #7  
Old 08-03-2012
palex palex is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 19 June 2014, 6:43 PM EDT
Posts: 58
Thanks: 22
Thanked 0 Times in 0 Posts
I am definitely using X11. Under 'edit', there are two options: Copy, and Special Characters.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to paste lines below certain text (Script) xxxx Shell Programming and Scripting 8 01-22-2012 02:16 PM
Copy and Paste Columns in a Tab-Limited Text file evelibertine Shell Programming and Scripting 5 05-26-2011 11:01 PM
Copy and paste text from a word document into a txt file in vi Pouchie1 Solaris 3 01-26-2010 10:01 PM
How to Merge / combine / join / paste 2 text files side-by-side cajunfries Shell Programming and Scripting 3 04-27-2009 08:25 PM
Copy/Paste text as commands in AIX Daniele11 UNIX for Dummies Questions & Answers 1 03-18-2007 09:53 PM



All times are GMT -4. The time now is 03:46 PM.