Cygwin 和 Vim - 命令提示符捕获鼠标滚轮滚动,而不是 Vim
所以我正确设置了 ~/.vimrc 文件中的设置
set mouse=a
set ttymouse=xterm2
但是,当我使用 vim 并尝试用鼠标滚轮滚动时,命令提示符上的滚动条移动而不是 vim 在内部滚动。这会让 vim 变得一团糟,尤其是当我在代码中移动时。
这之前是有效的,可能与命令提示符设置有关 - 尽管我不确定是哪些。
我还尝试过通过控制面板的鼠标设置并给 gvim
一个例外,但我在 Windows 7 中没有该选项。Cygwin
和 vim 的版本相当新。想法?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你很简单地错过了这个选项:
因为我使用 mintty,所以我可能过于简单化了。 Mintty 可以通过 cygwin setup.exe 安装。无论如何,Mintty 具有巨大的优势:
I think you simple miss the option:
I might be oversimplifying though since I use mintty. Mintty can just be installed from the cygwin setup.exe. Mintty has huge advantages anyway: