原因:ubuntu预装的是vim tiny版本 解决办法:安装vim full版本 在终端依次执行以下两条命令即可 sudo apt-get remove vim-common sudo apt-get install vim