From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.spocom.com (mail.spocom.com [206.63.224.240]) by sourceware.org (Postfix) with ESMTP id 893863858C54 for ; Thu, 11 May 2023 21:25:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 893863858C54 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=spocom.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=spocom.com Received: from localhost (146.sub-75-226-183.myvzw.com [75.226.183.146]) by mail.spocom.com with SMTP; Thu, 11 May 2023 14:25:13 -0700 Date: Thu, 11 May 2023 14:25:54 -0700 From: Gary Johnson To: cygwin@cygwin.com Subject: Re: mintty mouse behavior with vim Message-ID: <20230511212553.GD21381@phoenix> Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.32-74-generic GNU/Linux User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-05-11, Jose Isaias Cabrera via Cygwin wrote: > > On May 11, 2023 2:24 PM, Brian Inglis expressed: > > > 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 > > That's the problem. It's not doing it for me on vim on the cygwin > xterm, nor on a connection to an ubuntu server through cygwin > mintty. I have gvim for windows, and that works perfectly. But, > when I use the cygwin terminal, and an ssh'ed connection to > ubuntu, the mouse does not work. I will try to see what are my > .vimrc settings for Windows, cygwin and ubuntu and try to match > it. I may need to join the vim email support. Thanks. It may be that the 'mouse' option is not set on your Ubuntu vim when using ssh. Try :set mouse=a and see if that works. If not, then check that the version of vim on Ubuntu supports the mouse. Execute :version and check that it is not the tiny or small version and that +mouse and not -mouse appears in the list of features. I know that Ubuntu's standard vim does not support X, but other than that, I don't know what Ubuntu vim package supports what. I always install vim-gtk so I have everything. Regards, Gary