cant use arrow keys in vi editor

Asked by vishwa8055

im using ubuntu 8.10 fresher in this os can anyone help me out solving it.plz provide full instructions to solve it.
problem:cant use arrow keys its printing some alphabets..

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu vim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Douglas Moyes (aragorn-stellimare) said :
#1

Sounds like TERM is set improperly.

If you're using the Linux console, TERM should be set to linux. If you're in X Window and using xterm (gterm, eterm, or another xterm-like program) then your TERM should be set to xterm:

in bash/sh:

export TERM=xterm

you may want to check your .bashrc or .cshrc files to see if they're doing anything weird when setting the TERM environment variable.

Revision history for this message
anatoly techtonik (techtonik) said :
#2

Use `vim`, not `vi`.

Can you help with this problem?

Provide an answer of your own, or ask vishwa8055 for more information if necessary.

To post a message you must log in.