Mouse options not working in Vim on Git - Bash Windows

I have set mouse=a

my user .vimrc

to which it leads $MYVIMRC

and editing this .vimrc

reflects my vim client (like changing work colorscheme

).
However, mouse options don't work.

http://vimdoc.sourceforge.net/htmldoc/options.html
In the above link I found some information on what terminals it works on:

Enable mouse use. Works only for certain terminals (xterm, MS-DOS, Win32 | win32-mouse |, QNX pterm, * BSD console with sysmouse and Linux console with gpm).

So my question is, with Git - Bash on Windows, I can't use the mouse controls? Or is there a problem with mine .vimrc

?

+3


source to share


2 answers


Git for Windows based on mingw64 builds the msys2 project .
See more under How are msys, msys2, and msysgit messages related? "

vim

it was reported that it was not fully compatible with it before
.

You can either set options like:



set nocompatible
set backspace=2

      

Or don't use gvim instead of vim.

+1


source


git uses 2 terminals for windows. One is the standard Windows console, the other is mintty.



As far as I can see for git version 2.11.0.rc1 / Windows 10, the mouse works in mintty (I've tried select and scroll), but not in the Windows console.

0


source







All Articles