刚刚安装完版本为ubuntu的linux使用vim命令时需要安装VIM。没有安装vim会有如下提示
vim sources.list
The program 'vim' can be found in the following packages:
* vim
* vim-gnome
* vim-tiny
* vim-athena
* vim-athena-py2
* vim-gnome-py2
* vim-gtk
* vim-gtk-py2
* vim-gtk3
* vim-gtk3-py2
* vim-nox
* vim-nox-py2
Try: apt install <selected package>
安装vim只需使用如下命令
sudo apt install vim
sudo命令需要输入当前用户的密码
输完密码后会有如下提示信息
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
vim-common vim-runtime vim-tiny
Suggested packages:
ctags vim-doc vim-scripts vim-gnome-py2 | vim-gtk-py2
| vim-gtk3-py2 | vim-athena-py2 | vim-nox-py2 indent
The following NEW packages will be installed:
vim vim-runtime
The following packages w