vi inserts odd characters when using cursor keys in insert mode
Sean Estabrooks
seanlkml at sympatico.ca
Sat Jun 19 15:33:18 UTC 2004
On Sat, 19 Jun 2004 03:42:19 -0500
"r sutton" <rdsutton_public at email.com> wrote:
> With my install of FC2 I find that vi now has odd behavior when using the cursor keys when in insert mode. For example: move to the last character in the last line of text in a file -- the cursor is positioned over the last character and I press 'i' to select insert mode. Now press the right cursor key, and instead of moving the cursor to the right by one position I find the line is moved down and a uppercase 'C' is inserted in the line above. Pressing the 'up' cursor arrow on the keyboard inserts a new line with an uppercase 'A' -- left cursor inserts an uppercase 'D' -- 'down' cursor inserts a 'B'. Is this a change in vi or is this caused by a change in tty for the shell?
Works fine here. Perhaps your TERM variable is set incorrectly?
Try:
export TERM=xterm ; vi
- or if you're at a text console -
export TERM=linux ; vi
Good Luck,
Sean
More information about the fedora-list
mailing list