Re: vi inserts odd characters when using cursor keys in insert mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 19 Jun 2004 03:42:19 -0500
"r sutton" <rdsutton_public@xxxxxxxxx> 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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux