VIm autocomplete with YouCompleteMe
Finally i use an autocomplete plugin in my vim, my choice is YouCompleteMe. This plugin need vim 7.34+ and python support and my vim is still 7.3 so need to recompile it.
I use version 7.4, this is the stable version of vim and we can download it from (http://www.vim.org/sources.php)
$ wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 $ tar xf vim-7.4.tar.bz2 $ cd vim74 $ ./configure --with-features=huge --enable-pythoninterp $ make $ sudo make install
I need all of vim feature so i put
--with-features=huge and this option
--enable-pythoninterp to enable python support.
To checking vim version we can run
$ vim --version or from the inside of vim run this command
:version and then check python support
:echo has('python'), everything is ok so i need to install that plugin.
I use vim-plug as plugin manager so put this code
Plug 'Valloric/YouCompleteMe' in my vimrc, after vim reloaded install the plugin
And YouCompleteMe completing my vim. :)