Ubuntu – VIM,Vundle, You Complete me


I'm trying to use you complete me in vim. Here are the steps I've taken

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

I added this to /etc/vimrc and ~/.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

issued this shell command

vim +PluginInstall +qall

Didn't get any errors during all the steps above, but when I do this

vim test.cpp

enter insert mode and start typing


I don't get any code completion. What Am I missing?

Best Answer

  • You ran git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim with sudo. This put it Vundle in /root/. You need to follow the instructions for Vundle and issue the command correctly:

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