delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/25/13:58:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4EF77247.2050705@cpan.org>
Date: Sun, 25 Dec 2011 13:58:15 -0500
From: Rafael Kitover <rkitover AT cpan DOT org>
Reply-To: rkitover AT cpan DOT org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: mouse doesn't work in vim in screen in mintty
References: <4EE2B4AB DOT 3060701 AT cpan DOT org>
In-Reply-To: <4EE2B4AB.3060701@cpan.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 12/9/2011 8:23 PM, Rafael Kitover wrote:
> When I run vim in mintty without screen, the mouse works, but inside
> screen it does not.
> 
> I tried changing the TERM to xterm before launching vim, but that
> doesn't help, my TERM in screen is set to screen-256color and outside it
> to xterm-256color.
> 
> When I ssh to my linux in mintty and run vim inside screen there, the
> mouse works fine.

After investigating this problem further, I found a fix:

alias vim="vim -c 'set ttymouse=xterm2'"

For whatever reason, this command has to run AFTER vim has started up
and read the ~/.vimrc, putting this command into the ~/.vimrc has no effect.

Seems like some sort of bug, but for now I will use the alias.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019