Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #226095 > unrolled thread
| Started by | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| First post | 2020-08-11 07:10 +0200 |
| Last post | 2020-08-12 00:40 +0200 |
| Articles | 7 — 6 participants |
Back to article view | Back to linux.debian.user
copy/paste in vim (in terminal) Richard Hector <richard@walnut.gen.nz> - 2020-08-11 07:10 +0200
Re: copy/paste in vim (in terminal) "Thomas Schmitt" <scdbackup@gmx.net> - 2020-08-11 08:00 +0200
Re: copy/paste in vim (in terminal) Thomas Pircher <thp+debian@p5r.uk> - 2020-08-11 08:40 +0200
Re: copy/paste in vim (in terminal) "Miguel A. Vallejo" <ea4eoz@gmail.com> - 2020-08-11 09:10 +0200
Re: copy/paste in vim (in terminal) Greg Wooledge <wooledg@eeg.ccf.org> - 2020-08-11 14:00 +0200
Re: copy/paste in vim (in terminal) Toni Mas Soler <antomassol@gmail.com> - 2020-08-11 15:50 +0200
Re: copy/paste in vim (in terminal) Richard Hector <richard@walnut.gen.nz> - 2020-08-12 00:40 +0200
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Date | 2020-08-11 07:10 +0200 |
| Subject | copy/paste in vim (in terminal) |
| Message-ID | <ACuHT-7jH-1@gated-at.bofh.it> |
Hi all, This often annoys me, but usually not to the point of posting about it. I used to be able to use my mouse to select/paste 'normally' (for X), when using vim in a terminal. More recently (a few years?), it doesn't seem to work. If I'm using gvim, it's fine. If I'm using anything else in a terminal, it's fine. Actually I think I can paste _into_ vim in a terminal, but have to use the menus to do it, rather than just middle-click. Any tips on getting the old behaviour back? Or reasons/tips why I shouldn't, and what to do instead? I'm using xfce4-terminal, and this generally only applies when I'm editing on a remote server, or editing as root - otherwise I usually use gvim. Thanks, Richard
[toc] | [next] | [standalone]
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Date | 2020-08-11 08:00 +0200 |
| Message-ID | <ACvuh-7A2-1@gated-at.bofh.it> |
| In reply to | #226095 |
Hi, Richard Hector wrote: > I used to be able to use my mouse to select/paste 'normally' (for X), > when using vim in a terminal. Sounds like "set mouse=a" is active. Do in a running vim :set mouse-=a and check whether you get better copy+paste behavior. If it helps, put set mouse-=a into your ~/.vimrc or globally into /usr/share/vim/vimrc. > If I'm using gvim, it's fine. Check ~/.gvimrc and /usr/share/vim/gvimrc for "set mouse". Maybe you find something better than my proposal. Have a nice day :) Thomas
[toc] | [prev] | [next] | [standalone]
| From | Thomas Pircher <thp+debian@p5r.uk> |
|---|---|
| Date | 2020-08-11 08:40 +0200 |
| Message-ID | <ACw70-81K-3@gated-at.bofh.it> |
| In reply to | #226096 |
Thomas Schmitt wrote: > > Sounds like "set mouse=a" is active. Sounds like it. Either disable mouse mode as Thomas describes it, or keep it enabled and use the shift key when copying and pasting. This is useful e.g. when vim is started in a terminal with mouse mode, like tmux or screen. Thomas
[toc] | [prev] | [next] | [standalone]
| From | "Miguel A. Vallejo" <ea4eoz@gmail.com> |
|---|---|
| Date | 2020-08-11 09:10 +0200 |
| Message-ID | <ACwA2-8re-7@gated-at.bofh.it> |
| In reply to | #226095 |
[Multipart message — attachments visible in raw view] — view raw
Richard Hector (<richard@walnut.gen.nz>) wrote I used to be able to use my mouse to select/paste 'normally' (for X), > when using vim in a terminal. More recently (a few years?), it doesn't > seem to work. Yes, since a few years(?) you must use shift and the mouse for copy / paste in vim using Debian's default configuration.
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2020-08-11 14:00 +0200 |
| Message-ID | <ACB6G-2y7-11@gated-at.bofh.it> |
| In reply to | #226098 |
On Tue, Aug 11, 2020 at 09:05:06AM +0200, Miguel A. Vallejo wrote: > Richard Hector (<richard@walnut.gen.nz>) wrote > > I used to be able to use my mouse to select/paste 'normally' (for X), > > when using vim in a terminal. More recently (a few years?), it doesn't > > seem to work. > > Yes, since a few years(?) you must use shift and the mouse for copy / paste > in vim using Debian's default configuration. This changed in stretch, and I've documented it on the wiki, although I was a bit late in doing so. https://wiki.debian.org/NewInStretch#Changes
[toc] | [prev] | [next] | [standalone]
| From | Toni Mas Soler <antomassol@gmail.com> |
|---|---|
| Date | 2020-08-11 15:50 +0200 |
| Message-ID | <ACCP8-3DZ-13@gated-at.bofh.it> |
| In reply to | #226109 |
Open your file using vi -C <<filename>> That works fine for me. Then you can alias vi as vi -C using "alias vi='vi -C'" Toni Mas Missatge de Greg Wooledge <wooledg@eeg.ccf.org> del dia dt., 11 d’ag. 2020 a les 13:57: > > On Tue, Aug 11, 2020 at 09:05:06AM +0200, Miguel A. Vallejo wrote: > > Richard Hector (<richard@walnut.gen.nz>) wrote > > > > I used to be able to use my mouse to select/paste 'normally' (for X), > > > when using vim in a terminal. More recently (a few years?), it doesn't > > > seem to work. > > > > Yes, since a few years(?) you must use shift and the mouse for copy / paste > > in vim using Debian's default configuration. > > This changed in stretch, and I've documented it on the wiki, although I > was a bit late in doing so. > > https://wiki.debian.org/NewInStretch#Changes >
[toc] | [prev] | [next] | [standalone]
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Date | 2020-08-12 00:40 +0200 |
| Message-ID | <ACL62-hX-3@gated-at.bofh.it> |
| In reply to | #226098 |
On 11/08/20 7:05 pm, Miguel A. Vallejo wrote: > > > Richard Hector (<richard@walnut.gen.nz <mailto:richard@walnut.gen.nz>>) > wrote > > I used to be able to use my mouse to select/paste 'normally' (for X), > when using vim in a terminal. More recently (a few years?), it doesn't > seem to work. > > > Yes, since a few years(?) you must use shift and the mouse for copy / > paste in vim using Debian's default configuration. > That's great, and simple, thanks. I'll look at some of the other suggestions too, but this seems the simplest. Thanks all! :-) Richard
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web