Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, is there any way to run vim with mouse support on an Eterm? Code: :set mouse=a works only on xterms according to the vim manpage. Thanks in advance....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    mzq
    mzq is offline
    Just Joined!
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    26

    vim, Eterm and mouse


    Hello,

    is there any way to run vim with mouse support on an Eterm?
    Code:
    :set mouse=a
    works only on xterms according to the vim manpage.

    Thanks in advance.

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Since you're in an X environment, why not just use gvim?

  3. #3
    mzq
    mzq is offline
    Just Joined!
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    26
    Hi, Cabhan, thanks for the prompt answer.

    Maybe there is no other solution; I have to decide whether I want mouse support or vim running on a transparent Eterm. Btw, I emerged gvim just now.....

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Aha! I figured it out!

    Run these commands from vim's command mode:
    Code:
    :set ttymouse=xterm
    :set mouse=a
    That should get it working. If you want those commands executed automatically, add them to your ~/.vimrc.

    Enjoy!

  6. #5
    mzq
    mzq is offline
    Just Joined!
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    26
    Wow, that works! Thank you very much!

Posting Permissions

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