Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2000 23:45:20 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: weird inconsistent editing behavior
Message-ID:  <20000926234520.B81242@149.211.6.64.reflexcom.com>
In-Reply-To: <20000926131753.A24573@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Tue, Sep 26, 2000 at 01:17:53PM %2B0100
References:  <20000926131753.A24573@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 26, 2000 at 01:17:53PM +0100, j mckitrick wrote:
> 
> This one really has me going.  For the past 2 days,  when I am editing a
> document with vi or vim, after cursoring up several lines, the console beeps
> and inserts a capital 'A' and goes into insert mode.  After cursoring down
> several times, I get a capital 'B', a newline, and insert mode again.
> 
> AFAIK, the termcap on this machine has not changed, and  the term type is
> xterm-color, which is also correct.  This *has* to be a stupid mistake of
> some kind, but I am at a loss to figure out what.  Meanwhile, I will keep
> trying to solve it myself.

I only see this effect over network connections when I hold down and
repeat an arrow key. An arrow key acctually produces several
characters. Try doing,

  <ctrl-v><up-arrow>
  ^[[A

I believe that's an ESC followed by '[' and 'A.' Now you see where the
'A's come from? =) (Try the others to find the 'B.') That is, vi(1)
loses the association of that group of characters actually being one
keyboard event.

Of course, the way to prevent this is to use h-j-k-l to move around
the vi screen.
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000926234520.B81242>