Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird insertion from Vim on mouse click

Tags:

vim

putty

I'm using putty (on windows 7) to connect to shell and Vim as editor. I also have mouse=a option enabled in Vim, but I get some strange behavior (such as random insertions of characters and/or linebreaks) when I click to the right side of the Vim window (let's say it's like 70%+ of the screen width area where it gets weird). I'm slowly getting used to such behavior, but I'd really like to know if I could somehow fix this.

like image 428
kK-Storm Avatar asked Feb 11 '26 03:02

kK-Storm


1 Answers

So it seems "the original xterm mouse protocol as implemented by PuTTY only supports mouse coordinates up to 223" ak2 told me on superuser. So for anyone who will face such problem - set PuTTY window size to 95 columns - and mouse will work just as expected everywhere.

like image 108
kK-Storm Avatar answered Feb 15 '26 17:02

kK-Storm