[Q] Cursor keys in vim?

Dominic Mitchell dom
Sun Aug 15 23:00:05 BST 1999

On Sun, Aug 15, 1999 at 12:33:13PM +0100, Jonathan Belson wrote:
> An odd problem I've come across a couple of times before -
> when I'm in vim's insert mode, pressing the cursor keys
> inserts characters A to D instead of moving the cursor.
> I suspect I've misconfigured something (keyboard/charset),
> can anyone tell me how to fix it?

Make sure your TERM environment variable is set up correctly.  If you
are on the console it should be set to cons25.  If you are using an
xterm, it should be set to "xterm".

In csh/tcsh, do:

% setenv TERM cons25

In bash/zsh/ksh, do:

$ export TERM=cons25

And likewise for xterm...


More information about the Ukfreebsd mailing list