The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-02-2008
climber climber is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 4
Question Vim - Question

Hi,

I'm not sure whether this is the right place for my question.

For scripting I use very often Vim because it's almost available on all unix stations.

Sometimes it would be very helpful to exchange text inside Vim with other programs and the other way round! For example I want to copy inside vim 3 lines and paste them into Open Office or copy a URL from Firefox to Vim.

Is that possible ???

Thanks
climber
  #2 (permalink)  
Old 09-02-2008
Lakris Lakris is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 242
Hi,
If You have a three button mouse, You can usually select text with Your left mouse button and paste it with the middle one.
A modern Firefox most certainly also will allow You to just drag an adress, URL, or image/link to a text window, ie vim or terminal.

/Lakris
  #3 (permalink)  
Old 09-02-2008
climber climber is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 4
Sure that's possible but I want to let my hands on the keyboard :-)

climber
  #4 (permalink)  
Old 09-02-2008
ibs ibs is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 1
If you're inside screen, just "C-a esc" to enter copy mode, "spacebar" to set mark, select region, "spacebar" again, then "C-a ]" to paste.

"shift+insert" to paste content of clipboard outside screen. "shift+delete" to copy.
  #5 (permalink)  
Old 09-02-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
from vim you can use the the erad command to read a file in $pwd into the file.
:!pwd
:!ls
:r <somefile>

(the ! lets you execute shell commands )
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0