VIM,Vundle,你完成我

我想用你在vim中完成我。 以下是我采取的步骤

sudo apt-get install vim sudo apt-get install git sudo apt-get install clang-3.5 sudo git clone "https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 

我把它添加到/ etc / vimrc和〜/ .vimrc中

 set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'Valloric/YouCompleteMe' call vundle#end() filetype plugin indent on 

发出了这个shell命令

 vim +PluginInstall +qall 

在上述所有步骤中没有出现任何错误,但是当我这样做时

 vim test.cpp 

进入插入模式并开始输入

 \#include 

我没有得到任何代码完成。 我错过了什么?

你用sudo运行了git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 。 这把Vundle放在/root/ 。 您需要按照Vundle的说明进行操作并正确发出命令:

 git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim