mintty mouse behavior with vim

Brian Inglis Brian.Inglis@Shaw.ca
Thu May 11 18:23:48 GMT 2023


On 2023-05-11 09:24, Jose Isaias Cabrera via Cygwin wrote:
> 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.

If I select columns or lines in vim, then the statusline at the bottom of the 
window shows the number of columns or lines selected before the cursor line and 
column numbers and percentage thru the file, or the modeline if multiple windows 
are visible e.g.

-- SELECT --				4	7,2		All
or
-- SELECT --						4

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin mailing list