mintty mouse behavior with vim

Duncan Roe duncan_roe@optusnet.com.au
Fri May 12 02:16:15 GMT 2023


On Thu, May 11, 2023 at 03:24:18PM +0000, cygwin wrote:
>
> Greetings.
>
> In mintty, while using vim, I would like to highlight a few lines, and
> have vim tell me how many lines have been highlighted. Is this a
> possibility? For example:
>
> 0
> 1
> ->2
> ->3
> ->4
> ->5
> 6
> 7
> 8
> 9
>
> If I highlight lines 2 through 5, I would like vim to tell me that 4
> lines have been highlighted. It works fine with the windows vim, but it
> does not want to do it through mintty. Thoughts? Thanks.
>
> José
>
> PS: The real problem is that I am ssh'ing to an ubuntu box which I am
> using vim, but the mouse is not being acknowledged. Although, I can
> highlight and copy/paste, but clicking to a word to move the cursor
> there, it's not acknowledged.
>
You expect too much of ssh. ssh is a text utility, not an X one. The remote vim
never sees your mouse actions: it's mintty that performs select / paste.

Cheers ... Duncan.


More information about the Cygwin mailing list