Vim under the automatic completion, the best tool is youcompleteme, official documents here http://valloric.github.io/YouCompleteMe/
The installation is slightly more complicated and the following records my process.
1. Installing Vundle
Vundle is a plug-in manager under Vim, if before you configure Vim is to manually place the Xxx.vim configuration file to the appropriate directory, then now you want to install Vundle, because Youcompleteme is based on Vundle installation,
Vundle's github address: Https://github.com/VundleVim/Vundle.vim
-Git clone plugin$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
-Add the following to the front of the ~/.VIMRC file,
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for Vundle Start
Set nocompatible "be improved, required
filetype off "required
set the runtime path to include Vundle and initialize
Set Rtp+=~/.vim/bundle/vundle.vim
Call Vundle#begin ()
"Alternatively, pass a path where vundle should install plugins
"Call Vundle#begin (' ~/some/path/here ')
"Let Vundle manage Vundle, required
Plugin ' Vundlevim/vundle.vim '
"Install youcompleteme
Plugin ' valloric/youcompleteme ' Note that this is the plugin to install youcompleteme
"All of your Plugins must is added before the following line
Call vundle#end () "required
filetype plugin indent on "required
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for Vundle End
Save Close.
-Start Vim, execute command :PluginInstall 将出现如下安装画面,(YouCompleteMe 插件较大,请耐心等待)
Vim installation Youcompleteme