public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Gary Johnson <garyjohn@spocom.com>
To: cygwin@cygwin.com
Subject: Re: updated vim broke arrow/delete keys
Date: Fri, 02 Sep 2016 16:21:00 -0000	[thread overview]
Message-ID: <20160902162155.GA24830@phoenix> (raw)
In-Reply-To: <CAMZ6u3u5T4YAZaTsgZm-JguVhuSBdZuS8TPK0DZMfi=sDG7xSA@mail.gmail.com>

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

  reply	other threads:[~2016-09-02 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-02 15:04 Felipe Vieira
2016-09-02 16:21 ` Gary Johnson [this message]
2016-09-02 21:43 Felipe Vieira
2016-09-02 22:38 ` Erik Soderquist
2016-09-02 23:12 ` Gary Johnson
2016-09-04 15:19 Felipe M. Vieira
2016-09-04 20:48 ` Brian Inglis

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=20160902162155.GA24830@phoenix \
    --to=garyjohn@spocom.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).