X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=N8Wwrv BCNlUizMCvlsgNF57Zg/Mm2xBDdAVMWnMirKJz6obNLsjWi6BfAc9GjxUttolQLQ WbOC1/Fs0nIp92kIOEh/XfKAcavefg+47bAXt0FFJ3oKYxWfGhYRx4SP0BGKl+EX uxMD0L1H4grHBVT2mtjAkSm/D09k/WmGG0AKo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=0HDjeFKYePwU rRSg3y2SiEO5Uok=; b=h7wdn1qfsr7z/CKruHS6CNGtXNs8K4iPjJWZapESeiCA ToU8kxLncJEBFGkm9dnNL+e8GJTx3Oq5qzxTCTLAI14sqPgY2TLZswprhcn+c+4/ iKRStRqXy6KRfNXj/OjTCo0wdT4LL+feTO+rAjWA2ydquHGtpphxrK/AgPQP3uM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f48.google.com X-Received: by 10.194.192.98 with SMTP id hf2mr53397642wjc.23.1436648810239; Sat, 11 Jul 2015 14:06:50 -0700 (PDT) Message-ID: <55A18578.5010908@gmail.com> Date: Sat, 11 Jul 2015 23:07:04 +0200 From: James Darnley User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Vim, Mintty, and mouse resizing no longer works. References: <55A068C7 DOT 2090300 AT gmail DOT com> <55A1051A DOT 30300 AT towo DOT net> <55A15C60 DOT 6030609 AT gmail DOT com> <55A18010 DOT 7060103 AT towo DOT net> In-Reply-To: <55A18010.7060103@towo.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jn4An1aa8Gi1l5p2aCvLcH0UUUhReDqpb" X-IsSubscribed: yes --jn4An1aa8Gi1l5p2aCvLcH0UUUhReDqpb Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-07-11 22:44, Thomas Wolff wrote: > Am 11.07.2015 um 20:11 schrieb James Darnley: >> On 2015-07-11 13:59, Thomas Wolff wrote: >>> Am 11.07.2015 um 02:52 schrieb James Darnley: >>>> Hi Thomas >>>> >>>> Unfortunately I have a complaint to make. >>>> >>>> When using the latest Mintty release I can no longer use the mouse to >>>> resize split windows in Vim. In 1.1.3, I can drag any window separator >>>> around to change the size of them. In 2.0.2 Aim appears to interpret >>>> the mouse as trying to make a visual section in one window. >>>> >>>> I tried quickly to narrow down which commit might have introduced the >>>> problem using git bisect, unfortunately it was slowed down by some >>>> commits not compiling. However it did lead to producing this message. >>>> >>>>> 4765275a7cfd9fadc74aedc1191de5390fa11c09 is the first bad commit >>>>> commit 4765275a7cfd9fadc74aedc1191de5390fa11c09 >>>>> Author: Thomas Wolff >>>>> Date: Tue Jun 16 14:45:20 2015 +0200 >>>>> >>>>> fix restructuring >>>> If I checkout the commit immediately preceding this the mouse works >>>> as I >>>> expect. I cannot explain why this might be the case as it looks like >>>> there are no relevant code changes in that commit. >>>> >>>> I will try to investigate some more but I wanted to let you know. >>> The commit you refer to did not change any actual code, so maybe >>> something in the environment is involved. >>> Please describe a reproducible test case. How would you setup split >>> windows in vim? How would you try to resize them? >>> Also, did you use one of the new mouse options, like MiddleClickAction? >>> Thomas >> I don't know if you know vim so this might be verbose. >> >> To make a vertical split, run the command :vs >> To open vim with a vertical split: vim -O file1 file2 >> (That is a literal colon, v, and s and an uppercase letter O) >> >> To make a horizontal split, run the command :sp >> To open vim with a vertical split: vim -o file1 file2 >> (That is a literal colon, s, and p and an lowercase letter O) >> >> To resize (when it works) just left click on the separator and drag. >> Much like resizeable frames in a web page or a Windows window border >> (but you don't get the double ended arrow cursor) > > Hi James, > thanks for the step-by-step description. I cannot reproduce, however, a > working resize. I've tried with mintty 1.1.3 (freshly compiled, should > that make a difference) on cygwin-32, and mintty 1.2 on cygwin-64. > With a horizontal split, vim does not show me any separator at all. > With a vertical split, there is a vertical bar ("|") separator, but > nothing happens on click-and-drag. Is some additional vim configuration > needed to enable that feature? General mouse enabling perhaps? (I once > heard this would need to be fiddled about in vim and emacs and I wonder > why these traditional editors make basic things so troublesome for the > users; my own editor, mined, provides all mouse functions > out-of-the-box...) > Please, additional details. > Regards, > Thomas Ah yes, there is a config option for the mouse. Actually a bit of quick testing shows that two are needed. You can either run these two command or set them in vimrc. :set nocompatible :set mouse=3Da --jn4An1aa8Gi1l5p2aCvLcH0UUUhReDqpb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJVoYV+XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1NjEyRjRFOTUzQTZBREExMEU5QjI4NUFD QzI2REQxMDk5NDEyOTA4AAoJEMwm3RCZQSkIe4gH/3v54/fjKnGM8o1a68RMKGCz gwCzDuFxrt8pUva7T0fYNJfgi8z6Qzdu1bQav6bfFW609wt8yrGcXB1/5bCozuK9 KlMUIeExJCeViYwRvVr7QYg6FOZnab4y1TrrrDTGsvfFePi3qYQs0B0cH4aUPnRK /GBFJwz7hWYJkFMWMhziAgpOaBigisbi4bd+gl/gT1izrNChQr5RlpbpjBjkm6KZ E3ypjlZL2fogeD0KTELFpmydy4anJcdLpsKzReaenioV/vok6hiUkShL+mXMX2X1 Rr2nQcBzeVFLh0BLFlVYER4GfpQPWWeHaApXWhOjbSs4K+77F6QcOGQDdyxke0Y= =WvN3 -----END PGP SIGNATURE----- --jn4An1aa8Gi1l5p2aCvLcH0UUUhReDqpb--