[英]Mouse options not working in Vim on Git-Bash Windows
I have set mouse=a
in my user .vimrc
, which is where $MYVIMRC
leads to, and editing this .vimrc
does reflect my vim client (for example changing the colorscheme
works). 我在我的用户
.vimrc
set mouse=a
,这是$MYVIMRC
导致的地方,编辑这个.vimrc
确实反映了我的vim客户端(例如更改colorscheme
工作)。
However, the mouse options are not working. 但是,鼠标选项不起作用。
http://vimdoc.sourceforge.net/htmldoc/options.html http://vimdoc.sourceforge.net/htmldoc/options.html
In the above link I found some information about which terminals it works in: 在上面的链接中,我找到了一些有关它工作的终端的信息:
Enable the use of the mouse.
启用鼠标。 Only works for certain terminals (xterm, MS-DOS, Win32 |win32-mouse|, QNX pterm, *BSD console with sysmouse and Linux console with gpm).
仅适用于某些终端(xterm,MS-DOS,Win32 | win32-mouse |,QNX pterm,*带有sysmouse的BSD控制台和带gpm的Linux控制台)。
So my question is, using Git-Bash on Windows, am I not able to use mouse controls? 所以我的问题是,在Windows上使用Git-Bash,我无法使用鼠标控件吗? Or is there an issue with my
.vimrc
? 或者我的
.vimrc
有问题吗?
Git for Windows is based on mingw64 form the msys2 project . Git for Windows 基于msys2项目的mingw64 。
See more at " How are msys, msys2, and msysgit related to each other? " 请参阅“ msys,msys2和msysgit如何相互关联? ”
vim
was reported not fully compatible with it before . 据报道,
vim
与之前并不完全兼容 。
You can either set options like: 您可以设置以下选项:
set nocompatible
set backspace=2
git for windows uses 2 terminals. git for windows使用2个终端。 One is the standard Windows console, another is mintty.
一个是标准的Windows控制台,另一个是薄荷。
As far as I can see for git version 2.11.0.rc1/Windows 10, mouse works in mintty (I tried selection and scrolling), but not in windows console. 据我所知,对于git版本2.11.0.rc1 / Windows 10,鼠标工作很简单(我尝试选择和滚动),但不是在Windows控制台中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.