Vim安装在Ubuntu 14.04中
我无法安装Vim并需要帮助。 我尝试过以下方法:
root@cbitlab1:/home/cbitlib1# sudo -s root@cbitlab1:/home/cbitlib1# apt-get install vim 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
我该如何解决这个问题 – 我在14.04。
确保您拥有最新的sources.list
sudo apt-get update
然后运行:
sudo apt-get install vim
Vim
预装在基于Linux的操作系统中。 对于Ubuntu,它的最小版本已预先安装。
vim.tiny
您可以创建别名以将其作为vim运行
alias vim=vim.tiny
为了使别名永久化,
gedit ~/.bashrc
在.bashrc
文件中添加alias vim=vim.tiny
。
有关详细信息,请参阅此处: 如何创建永久性Bash别名?