FS#50355 - [vim] cannot copy or paste text from X

Attached to Project: Arch Linux
Opened by Vyacheslav Stetskevych (tskevy) - Thursday, 11 August 2016, 14:56 GMT
Last edited by Anatol Pomozov (anatolik) - Monday, 22 August 2016, 17:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
copy or paste using a mouse middle button to/from vim running in KDE's konsole terminal results in text that was previously in the buffer to be inserted.
This started on Aug 05 when 7.4.2143 was installed.

Additional info:
* package version(s)
vim-7.4.2143-1 -- broken
vim-7.4.1910-1 (and any previous version) -- works

This issue hinders my productivity a lot.
Thank you.
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Monday, 22 August 2016, 17:03 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Thursday, 11 August 2016, 22:56 GMT
I believe the usual response here is "use gvim". Does that work?

I'm not sure if that's only applicable to the X clipboard or if primary selection as well.
Comment by Vyacheslav Stetskevych (tskevy) - Thursday, 11 August 2016, 23:25 GMT
gvim is not an option, sorry. vim had worked for me for 5+ years, until version 7.4.2143-1 came out a week ago. I downgraded vim and vim-runtime for now, but please fix!
Comment by Doug Newgard (Scimmia) - Thursday, 11 August 2016, 23:40 GMT
Great non-answer.
Comment by Christian Rebischke (Shibumi) - Thursday, 11 August 2016, 23:45 GMT
Are you sure this is an vim issue? Sorry but this sounds more like a terminal issue for me. What has vim to-do with copy paste stuff in X? Btw: if you want a fix for this or generally blame someone do it on the vim bugtracker.
Comment by Anatol Pomozov (anatolik) - Friday, 12 August 2016, 00:23 GMT
Thanks for the reporting. Could you please send this information upstream maillist as well? https://groups.google.com/forum/#!forum/vim_dev
Comment by Jan de Groot (JGC) - Wednesday, 17 August 2016, 08:10 GMT
Pasting is broken in vim using putty also. I used to be able to paste using right mouse button, but instead of pasting it enters visual insert mode.

Using gvim is not an option when not having a $DISPLAY.
Comment by Christian Hesse (eworm) - Wednesday, 17 August 2016, 08:24 GMT
This is not a bug, but a feature. You can just click to place the cursor now, amongst other mouse related features.
For simple copy'n'paste just press and hold the shift key...
Not sure whether or not to like this being the default behaviour myself. :-p
Comment by Fedor Piecka (piecka) - Thursday, 18 August 2016, 14:59 GMT
You can find a section enabling the mouse in file /usr/share/vim/vim74/defaults.vim (which didn't exist in a previous version of the package):

" In many terminal emulators the mouse works just fine. By enabling it you
" can position the cursor, Visually select and scroll with the mouse.
if has('mouse')
set mouse=a
endif


As I hate it too, I wanted to disable it for all users in /etc/vimrc. I found that is not possible because the defaults.vim override the setting. Setting "set mouse=" in $HOME/.vimrc works.

I consider that behavior a bug as it is not possible to override default settings using /etc/vimrc.
Comment by Vyacheslav Stetskevych (tskevy) - Monday, 22 August 2016, 16:27 GMT
Thanks Christian, I'm now able to use this after your explanation.
The new mouse mode is ok for me. Pressing the shift key works.
The one thing I'd love to see is this to be explained in vim package post-install notes (and maybe in the wiki), to remove some confusion from this world :)
As far as I'm concerned, this issue may be closed.
Comment by Anatol Pomozov (anatolik) - Monday, 22 August 2016, 17:03 GMT
Yes, please add this info the the wiki.

I also suggest to post your questions to vim_dev maillist. The vim devs can provide more context on this behavior change.

Loading...