开发者

Cygwin and Vim - Command Prompt is capturing mouse wheel scrolling and not Vim

开发者 https://www.devze.com 2023-04-12 22:27 出处:网络
So I have the setting in my ~/.vimrc file set correctly set mouse=a set ttymouse=xterm2 However, when I am using vim and I try scrolling with my mouse wheel, the scroll bars on the command prompt m

So I have the setting in my ~/.vimrc file set correctly

set mouse=a
set ttymouse=xterm2

However, when I am using vim and I try scrolling with my mouse wheel, the scroll bars on the command prompt move instead of vim scrolling internally. This makes a mess for vim, especially when my I am moving throughout my code.

This was working before and may开发者_开发问答 be related to the Command Prompt Settings - although I am not sure which ones.

I have also tried to go through the Control Panel's Mouse Settings and give gvim an exception, but I don't have that option in Windows 7.

The version of Cygwin and vim are pretty recent. Thoughts?


I think you simple miss the option:

 se mouse=a

I might be oversimplifying though since I use mintty. Mintty can just be installed from the cygwin setup.exe. Mintty has huge advantages anyway:

  • performance
  • standards compliance
  • screen support (you can detach/reattach without problems, woot!)
  • functioning full-screen support (AltEnter)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号