In Ubuntu, Vi cannot use the direction keys normally. (1) Problemdescription: vi cannot use the direction keys normally. (2) Solution: Problem Analysis: vimtiny version is pre-installed on ubuntu, but vimfull version is required. Run the following statement to install vimfull: $ sudoapt-getremovevim-common $ sudoapt-getinstallvimp
Incorrect direction keys for Vi in Ubuntu
(1) Problem description:
Vi cannot use direction keys normally
(2) Solution:
Problem Analysis: ubuntu is pre-installed with the vim tiny version, but requires the vim full version. Run the following statement to install vim full:
$ Sudo apt-get remove vim-common
$ Sudo apt-get install vim
Ps: the following problems may occur:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source
E: Package vim has no installation candidate
Solution:
Sudo apt-get update & sudo apt-get install vim
Recommended reading:
Vim Learning Guide http://www.linuxidc.com/Linux/2013-08/89096.htm
Quick learn Vi editor http://www.linuxidc.com/Linux/2013-08/88586.htm
Powerful Vim editor http://www.linuxidc.com/Linux/2013-07/87544.htm
Build a Vim Development Environment http://www.linuxidc.com/Linux/2013-07/87363.htm on CentOS 6.2
Vim 7.4a release, new and faster http://www.linuxidc.com/Linux/2013-07/87035.htm for regular expression Engines
CentOS 5.4 installation highlighted Vim editing tool http://www.linuxidc.com/Linux/2013-06/86508.htm
Vim tips: C language http://www.linuxidc.com/Linux/2012-12/77124.htm settings
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2