arrow key dysfunction in vi-editor

Asked by pratik

when i use vi editor in my ubuntu 10.01 the arrow keys do not work fine.inspite of moving up and down they start printing capital A B C D.I searched on the net and got that I should edit some files in the etc/vim folder ,but the access is not granted not I am able to change the access mode by chmad command .plz help.

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
Maxim Petrov (maximpetrov) said :
#1

Use

sudo gedit FILENAME

to open that file with root permissions

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Please install

vim-full

or for other with the same issue in Ubuntu 11.04

vim

package

Revision history for this message
pratik (bhawana-pratik) said :
#3

I am not able to use vi editor(with arrow keys functioning properly) in 11.04 also.
doing
sudo apt-get install
is not helping .it says
vim package not available
how to download related package

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get install vim

Can you help with this problem?

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

To post a message you must log in.