原因:这是ubuntu预装的是vim tiny版本,安装vim full版本即可解决 解决方法: sudo apt-get remove vim-common sudo apt-get install vim