Version: (using KDE KDE 3.3.1) Installed from: RedHat RPMs It seems a scroll event is sent along with the middle mouse button press event when pasting text in vim. xterm doesn't have this bug. How to reproduce: 0. You need a mouse with a scroll wheel acting like a middle mouse button. 1. Create a ~/.vimrc file containing a single line: "set mouse=a" 2. Create a new file with vim. Insert many newlines, more than the height of the konsole. 3. Select a dummy string not containing newlines (for the sake of simplifying the test case). 4. Press the middle mouse button while holding the shift key, in insert mode. The text will be inserted and vim will scroll up three lines, as if a scroll event had been sent. Expected behavior: The text shouldn't scroll!
It does appear that having :set mouse=a causes scrolling with Shift-MMB. I personally don't use mouse=a in vim so I'm not sure what is suppose to occur.
The following excerpt from Vim's manual (:help mouse) will probably be helpful: Note: When enabling the mouse in a terminal, copy/paste will use the "* register if there is access to an X-server. The xterm handling of the mouse buttons can still be used by keeping the shift key pressed. Also see the 'clipboard' option.
Works correctly under Konsole for KDE 4 (ie. doesn't scroll).
Bug is still there. Checked on version 2.1 KDE 4.00.84 (KDE 4.0.84 (KDE 4.1 >= 20080625)) from Debian Experimental. Try to open large python file, scroll in the middle, enter Insert mode and try to paste any text using middle mouse button/wheel