Eric Desjardins wrote:
Hi,

I would like to know how to configure vim so that the mouse behaves like
on unix.
When selecting something, it will copy it and when I use the 3rd mouse
button, it would paste.

I look a bit at the doc but could not figure it out.

Thanks,
Eric




Not sure exactly how to cure your problem, but you might want to look at the following:

        :help :behave
        :help 'mousemodel'
        :help 'clipboard'

If the above (and possibly what they resend to) don't cure your middle-button pasting problem, you might also try

        :map <MiddleMouse> P
        :map! <MiddleMouse> <C-O>P

which would (I expect) paste from the default register. Replace P by "+P to paste from the system clipboard; replace P by p to paste after the cursor character rather than before it.


Best regards,
Tony.

Reply via email to