LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Which light text editor can copy text from file and paste in browser? (http://www.linuxquestions.org/questions/linux-software-2/which-light-text-editor-can-copy-text-from-file-and-paste-in-browser-167940/)

davidas 04-08-2004 08:16 PM

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 :)

hw-tph 04-08-2004 08:24 PM

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

shanenin 04-08-2004 08:35 PM

if you are using gnome or kde, just highlight and r-click on the text choose copy.

davidas 04-08-2004 08:39 PM

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 !

shanenin 04-08-2004 08:46 PM

how big is this file?

davidas 04-08-2004 08:51 PM

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?

jschiwal 01-30-2006 08:41 PM

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.

tuxombie 02-26-2006 04:51 PM

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.

j13ett5 03-05-2006 09:53 PM

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?

mschutte 03-06-2006 11:28 AM

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


All times are GMT -5. The time now is 03:24 AM.