ubuntu预装的是vim tiny版本,而需要的是vim full版本。执行下面的语句安装vim full版本: sudo apt-get remove vim-common sudo apt-get install vim