public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: James Darnley <james.darnley@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Vim, Mintty, and mouse resizing no longer works.
Date: Sat, 11 Jul 2015 18:11:00 -0000	[thread overview]
Message-ID: <55A15C60.6030609@gmail.com> (raw)
In-Reply-To: <55A1051A.30300@towo.net>

[-- Attachment #1: Type: text/plain, Size: 2921 bytes --]

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 <mintty@users.noreply.github.com>
>>> 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)

And to close a window in vim, the command is :q
To close all windows, :qall

The easiest way is probably to open vim with a split, it is one command
that can go in the history.

I do have the "void" middle mouse option but I have been running that
ever since I wrote the original patch and attached it to the Google code
issue about it and it was working fine until I updated and used the
mintty provided by your package.  I did remove minttyrc from my home
directory so that the defaults would be used just in case it was being
confused by my settings.  My right click option should be default, show
menu.

P.S.  Why does this list not set the "reply to" address to itself.  I am
sending this again because I just realised that I sent it directly
rather than to the list.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 603 bytes --]

  reply	other threads:[~2015-07-11 18:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-11  0:52 James Darnley
2015-07-11 11:59 ` Thomas Wolff
2015-07-11 18:11   ` James Darnley [this message]
2015-07-11 20:44     ` Thomas Wolff
2015-07-11 21:06       ` James Darnley
2015-07-11 21:13         ` Thomas Wolff
2015-07-11 21:26           ` James Darnley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55A15C60.6030609@gmail.com \
    --to=james.darnley@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).