Find the answer to your Linux question:
Results 1 to 2 of 2
With "mouse=a" in .vimrc I use the mouse scroll button to cruise through my files, and left clicking to jump locations. Without "mouse=a" in .vimrc I enjoy traditional x-windows copy ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Apr 2006
    Posts
    35

    Thumbs down VIM config: mouse support AND x-windows copy & paste


    With "mouse=a" in .vimrc I use the mouse scroll button to cruise through my files, and left clicking to jump locations.

    Without "mouse=a" in .vimrc I enjoy traditional x-windows copy and paste features (highlight and middle click).

    I would like the best of both worlds. Anyone know how to have mouse function in vim without losing x-windows function? Thanks in advance.

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    you can manually map the mouse keys with :map <mousebutton> <command>, so to scroll down just add :map <MouseDown> <C-Y> to your .vimrc. This was you can set the mouse to exactly how you want it to work.

    You will really fly then

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •