vim: How to configure to use the mouse, AND to copy and paste
Hi,
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: :set number :set mouse=r :set selectmode+=mouse :behave xterm 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? Thanks Alex 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. |
try a and r option it might help you.
Code:
:set mouse=ar |
Hi,
your suggestion does not work. I have now the following .vimrc: :set number :set mouse=ar :set selectmode+=mouse and it looks that only point (1) of my list does work. I cannot copy text from/to the vim editor. Any other ideas I can try? Thanks Alex |
All times are GMT -5. The time now is 09:02 AM. |