vim: How to configure to use the mouse, AND to copy and paste
I have questions regarding vim and how to enable the mouse in it. There were some other threads about that issue, but I could not find a solution for my problem.
I would like to have the following actions enabled in vim:
1. To go to some place, I click the left mouse key
2. To copy text TO the vim editor, I mark the text first in some other window (browser, emacs, xterm) and then I middle-click (or shift-middle click).
3. To copy text FROM the vim editor, I select the text (left-click, hold down, select text, release left button) and then paste the text to somewhere else via the middle button
4. The same as (3) but TO the vim editor itself.
I have the following content of my .vimrc:
With that configuration, the points 2-4 are working.
When I change mouse=r to mouse=a, then 1 AND 3 is working, where I have to press the shift key in addition to press the middle mouse button.
My question: How to enable all pieces 1-4, and at best without having the shift-key pressed down to be able to paste text? How should my .vimrc look like?
P.S. emacs is not a solution since I am working remotely over a large distance and the network is not suitable to have an emacs session opened at the remote pc.