Subject: Re: vi and the arrow keys!
To: D. Jay Newman <>
From: Brian de Alwis <>
List: current-users
Date: 03/07/1994 12:53:30
> I am running netbsd-current, and am having problems with the new vi.  The
> biggest one is that I can't use the arrow keys during insert mode.  This
> occurs both when I am running X and when I am running normally.
> When using arrow keys during insert mode, a control sequence is displayed
> on the screen, and I am kicked out of insert mode.
> This used to work before nvi was added to the tree.

That's because we had elvis (a vi clone) as vi, which had various
extensions to vi, including arrow-keys-in-insert.

You should be able to `emulate' this behaviour with some macros like:

:map! <^V><up> <^V><ESC>ka
:map! <^V><down> <^V><ESC>ja
:map! <^V><left> <^V><ESC>ha
:map! <^V><right> <^V><ESC>la

where <x> means `key x'.
Brian de Alwis - University of Waterloo:
`How extraordinarily lucky Minta is! She is marrying a man who has a gold
 watch in a wash-leather bag!' - _To_the_Lighthouse_, Virginia Woolf.