delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/02/12:21:28

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:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=QVmt
ngw6J7k5R51gorpZZ5zj/M6EPmM6K+XuszMh5Q9YPAirjQ4ZFBqe6JNX7j/OuRt8
LAjYuXr1I+t0JiZ63bayZ9entWvTYtCKD9p9RBhHKOD8WotPhe3IY4IHkWT6tSM0
k2gglTA94zUs6VBKwgfIexDkk2bJXsjrHvm9D/0=
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:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=xQ7ss0KSfN
yKBQwVPDWPNCvgEt4=; b=skGh43kUf8Fn3987eLCmGiUooSpuSCzTZc6JTzcdFq
x2X3LxTeUTsLguuzcFh3ZR17MrYi8T8cHJUvXnSzwUNtFon1GMg+TvAfx8ldVk7J
XgNBy2+XGqjff8yVUGi8ymeW8YmoF9x8D8IFFvDr9XnrmNpmVxh1T7AtZaTa6iFc
o=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Gary, Felipe, felipe, Del
X-HELO: mail.spocom.com
Date: Fri, 2 Sep 2016 09:21:55 -0700
From: Gary Johnson <garyjohn AT spocom DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: updated vim broke arrow/delete keys
Message-ID: <20160902162155.GA24830@phoenix>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAMZ6u3u5T4YAZaTsgZm-JguVhuSBdZuS8TPK0DZMfi=sDG7xSA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAMZ6u3u5T4YAZaTsgZm-JguVhuSBdZuS8TPK0DZMfi=sDG7xSA@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes

On 2016-09-02, Felipe Vieira wrote:
> Dear all,
> 
> I just updated my vim and some keys are now broken.
> 
> I'm trying both versions of vim:
> vim-7.4.2181-1.tar.xz 07-Aug-2016 21:13 1062348
> and
> vim-7.4.1990-1.tar.xz                              06-Jul-2016 20:31
>           1055584
> but both now broke the arrow keys/delete in insert mode.
> 
> Up arrow inserts "OA" as text, del inserts "[3~".
> 
> How can I fix these and revert to what was before?
> 
> I'm assuming my version of vim was even older than those.

They work fine for me.  It could be that something else changed at
the same time that you updated vim.

What terminal are you running in?

I started a Cygwin shell in mintty and ran vim 7.4.2181 as

    $ vim -N -u NONE

to get rid of the influence of any configuration files, then entered
some text.  The left, right, up and down arrows and delete all work
as expected in insert mode.

Executing

    :set termcap

will show you the character sequences vim expects to see for those
keys.  I see, for example,

    t_ku <Up>        ^[O*A
    t_kD <Del>       ^[[3~

where ^[ represents Escape.

You might also check the value of 'term'.  I see this:

    :set term?
      term=xterm

I can't think of a cause at the moment, but maybe trying those steps
will shed some light.

Regards,
Gary


--
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