Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625590 - app-editors/vim-8.0.0386 enters edit mode on middle mouse click
Summary: app-editors/vim-8.0.0386 enters edit mode on middle mouse click
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
Depends on:
Reported: 2017-07-19 03:59 UTC by Bodo Thiesen
Modified: 2018-01-18 13:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Bodo Thiesen 2017-07-19 03:59:24 UTC
When I do a middle mouse click to paste a vim command into the xterm, instead of just performing the requested actions, vim first enters edit mode and THEN processes the text to paste (resulting in it being inserted as text instead of being interpreted as commands). I don't have "set mouse=$something", cas on suggested to add "set mouse=" to my ~/.vimrc, which I did without success, afterwards, he suggested, this to be very likely a Gentoo bug.

Normal mouse interaction works as expected in the same xterm without vim like in bash (i.e. middle mouse click just inserts mouse buffer).
Except from the problem I described here, vim seems to ignore the mouse thus it behaves normally, allowing me so select text into the mouse buffer and pasting it back somewhere else.

For furter reference, my question:

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2017-07-20 18:43:36 UTC
I can reproduce this, but did not know that it could be a "bug". However, the vim team will know better about this.
Comment 2 Patrice Clement gentoo-dev 2017-07-23 13:50:56 UTC

A quick Google search would have led you to this page

A Vim maintainer explains that the clipboard support is turned off when Vim is compiled with the --with-features=tiny flag. We support that flag through the minimal USE flag: Vim minimal supports a tiny set of features whilst normal Vim support a much larger set.

Please give it a try and report back. Thanks!
Comment 3 Bodo Thiesen 2017-07-24 04:13:10 UTC
I tested vim's behavior after reemerging it with minimal, the reported issue remains unchanged.

This are the flags i have set on vim (now, after removing minimal again):

[ebuild   R    ] app-editors/vim-8.0.0386::gentoo  USE="X acl nls perl python ruby tcl -cscope -debug -gpm -lua -luajit -minimal* -racket (-selinux) -vim-pager" PYTHON_TARGETS="python2_7 python3_4 (-python3_5) (-python3_6)" 0 KiB
Comment 4 Bodo Thiesen 2017-07-24 16:04:53 UTC
After noticing the X USE flag, I just tried reemerging vim with various combination of use flags:

1. -X
2. -acl -nls -perl
3. -python -ruby -tcl
4. -X -acl -nls -perl -python -ruby -tcl
(this means: No use flag set at all)

5. -X -acl -nls -perl -python -ruby -tcl debug gpm lua vim-pager
(all use flags set except for cscope luajit and racket, because those would install new dependencies and selinux)

In all those combinations, the issue remains.