Re: [ILUG] vim and cursor keys..

From: Niall O Broin (niall at domain linux.ie)
Date: Tue 11 Sep 2001 - 21:51:20 IST


On Tue, Sep 11, 2001 at 01:49:53PM +0100, Donncha O Caoimh wrote:

> Just upgraded Vi on one of our boxes to Vim60av (just out today,
> ftp://ftp.vim.org/pub/vim/unreleased/unix/vim-6.0av.tar.bz2) and it's
> causing trouble when I use the cursor keys.
>
> If I'm in insert mode and I press any cursor key a character gets
> printed on the line above the cursor. ie. I press cursor up and "C" is
> printed for each press, press cursor right and "D" is printed (AFAIR).
> It doesn't happen with the installed Vi (vim-minimal-5.6-11) but it also
> happens on our Solaris box, I let that go, "coz it's Solaris", but now
> it's happening on a Linux box I'm peeved.. :|
>
> $TERM=xterm, running inside a screen session.
>
> Can anyone suggest anything?

Why, upgrade to Emacs of course. I have encountered this problem on numerous
Unices and numerous versions of vi over the years - seems to be because a
cursor key press sends ESC followed by some other keys, and eventually this
gets interpreted by vi as a C, or an A, or whatever. Never seen it happen
with emacs . . . .

Niall



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:05 GMT