Ubuntu中Vi不能正常使用方向键问题

Ubuntu中Vi不能正常使用方向键问题

(一)Problem description:

vi不能正常使用方向键

(二)Solution:

问题分析:ubuntu预装的是vim tiny版本,而需要的是vim full版本。执行下面的语句安装vim full版本:

$sudo apt-get remove vim-common

$sudo apt-get install vim

ps:这里可能遇到以下问题:

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

解决办法:

sudo apt-get update && sudo apt-get install vim

推荐阅读:

vim

相关推荐