LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-08-2004, 08:16 PM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Which light text editor can copy text from file and paste in browser?


Is there any way to do that with vi editor?ie.vi a file, yank some text and paste into browser (eg. this message box).

If not, which light editor would you recommend?

Thanks
 
Old 04-08-2004, 08:24 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Highlight the text in your editor with the mouse, then click your third mouse button (mouse wheel, or left and right mouse buttons at once) in the textbox to paste. That's the original X11 way of copying and pasting.


Håkan
 
Old 04-08-2004, 08:35 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
if you are using gnome or kde, just highlight and r-click on the text choose copy.
 
Old 04-08-2004, 08:39 PM   #4
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
If I need to copy the content of a big file, is there any way for me to highlight the entire file instead of going page by page?

Thanks !
 
Old 04-08-2004, 08:46 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
how big is this file?
 
Old 04-08-2004, 08:51 PM   #6
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
28 page down in my vi editor running in xterm. Highlighting the text page by page and pasting with the mouse middle button does work, but just wondering if there is a more efficient way of doing it in vi

Thanks !

Quote:
Originally posted by shanenin
how big is this file?
 
Old 01-30-2006, 08:41 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Use a different editor. One that isn't a console editor. Most editors have the same shortcuts of [CNTRL]-a to select all, and [CNTRL]-c to copy. This will put the entire document into the clipboard. Then in the browser, [CNTRL]-v or [SHIFT][INSERT] should paste the contents. These shortcuts are very common and may work, whether you are using linux, windows or mac.

Last edited by jschiwal; 01-31-2006 at 02:06 AM.
 
Old 02-26-2006, 04:51 PM   #8
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Rep: Reputation: 15
Its possible in xemacs too (though i don't think in emacs). C-SPC, M-> to go to the end of the file, and then middle click where you want to paste it.
 
Old 03-05-2006, 09:53 PM   #9
j13ett5
LQ Newbie
 
Registered: Nov 2005
Distribution: debian
Posts: 13

Rep: Reputation: 1
Smile

how to paste lots of text from an xterm...
Quote:
Originally Posted by davidas
28 page down in my vi editor running in xterm. Highlighting the text page by page and pasting with the mouse middle button does work, but just wondering if there is a more efficient way of doing it in vi
use a smaller font? (this is easier to do in some xterm replacements)
use a gui-enabled editor?

Last edited by j13ett5; 03-05-2006 at 09:54 PM.
 
Old 03-06-2006, 11:28 AM   #10
mschutte
Member
 
Registered: Jan 2005
Location: Innsbruck, Austria
Distribution: Debian GNU/Linux Lenny
Posts: 68

Rep: Reputation: 15
If you are using Vim, it is probably compiled with X11 features. To check it out, do `:echo has("X11")'. If it says `1', you are lucky: Just `v'isual the text you want to yank, as usual, and go "+y (yank into register `+'). This command copies the text into the clipboard; to get the text in the browser, click the middle mouse button or something like Edit->Paste.
If you do not regard Vim as absolutely disgusting, you might want to have a look at gvim, a GUI-enabled version, which has X11 features in every case. See http://www.vim.org/ for details.

Hope I could help,
Michael Schutte
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CLI copy & paste between text files? David the H. Linux - General 3 09-15-2004 12:05 PM
how to copy and paste between text editors sessions in bash pxes351 Linux - Newbie 2 05-06-2004 06:59 AM
Getting rid of highlighting in a vi editor text file. Dee62 Linux - Newbie 6 03-11-2004 02:55 PM
full screen TEXT UI editor, file manager? sick-o-windoze Linux - Newbie 6 12-01-2003 01:47 PM
How to copy/paste text from boot, nongui Eradicator Linux - Newbie 2 10-31-2003 05:40 AM


All times are GMT -5. The time now is 11:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration