You are not logged in.

#1 2009-06-10 12:27:34

unregistered
Member
Registered: 2008-04-09
Posts: 134

how do I enable mouse cut / copy / paste in commandline editors?

so that I can copy from say firefox and paste it in the editor and vice versa

editors are vi, nano and emacs
using xmonad window manager if that info's useful

Offline

#2 2009-06-10 12:38:56

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: how do I enable mouse cut / copy / paste in commandline editors?

in vi, press i for insert then press the insert button on your keyboard, or press the middle button of your mouse.

Edit: In fact Insert should work as pasting in the terminal as a whole

Last edited by gazj (2009-06-10 12:39:47)

Offline

#3 2009-06-10 12:49:17

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: how do I enable mouse cut / copy / paste in commandline editors?

what about copying from the terminal editors and pasting into firefox?

Offline

#4 2009-06-10 13:07:08

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: how do I enable mouse cut / copy / paste in commandline editors?

Hilight with the mouse, middle click in Firefox to paste.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#5 2009-06-10 14:29:11

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: how do I enable mouse cut / copy / paste in commandline editors?

Install vim/gvim and do :h quoteplus

Last edited by Mr.Elendig (2009-06-10 14:29:40)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2009-06-10 21:08:20

EmaRsk
Member
From: Italy
Registered: 2003-12-07
Posts: 26

Re: how do I enable mouse cut / copy / paste in commandline editors?

In vim, mc, links and other terminal programs that support the mouse, you can hold the Shift key while pressing the mouse buttons to avoid the program catching the clicks, so you can select and paste like it would in the terminal.
(I'm not sure my explanation is clear, just try and see...)

Offline

#7 2009-06-10 21:47:23

cardinals_fan
Member
From: /dev/null
Registered: 2008-02-03
Posts: 248

Re: how do I enable mouse cut / copy / paste in commandline editors?

If you use screen, ^a+[ will enter copy mode, the spacebar will select, and ^a+] will paste.  You can use shift+mouse button in dvtm.


Segmentation fault (core dumped)

Offline

#8 2009-06-11 01:01:22

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: how do I enable mouse cut / copy / paste in commandline editors?

EmaRsk wrote:

In vim, mc, links and other terminal programs that support the mouse, you can hold the Shift key while pressing the mouse buttons to avoid the program catching the clicks, so you can select and paste like it would in the terminal.
(I'm not sure my explanation is clear, just try and see...)

This is how I do it too.  When I use vim then I have to do Ctrl + Shift + C to copy.  To paste into vim I have to to Ctrl + Shift + V.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#9 2009-06-11 01:16:57

cardinals_fan
Member
From: /dev/null
Registered: 2008-02-03
Posts: 248

Re: how do I enable mouse cut / copy / paste in commandline editors?

Gen2ly wrote:
EmaRsk wrote:

In vim, mc, links and other terminal programs that support the mouse, you can hold the Shift key while pressing the mouse buttons to avoid the program catching the clicks, so you can select and paste like it would in the terminal.
(I'm not sure my explanation is clear, just try and see...)

This is how I do it too.  When I use vim then I have to do Ctrl + Shift + C to copy.  To paste into vim I have to to Ctrl + Shift + V.

I don't think that's what EmaRsk meant.  Those keybindings are for your terminal emulator, while Shift + Mouse works in any of them.


Segmentation fault (core dumped)

Offline

Board footer

Powered by FluxBB