Thursday, September 26, 2013

Building Vim from sources

It was required to build Vim from sources since plugin like YouCompleteMe requires newer version.

Download the source files from the following link:

ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2

This is given in official download page of Vim:

http://www.vim.org/download.php#unix

hg clone method produced error. So I went to uncompressed folder of the above tar file and followed the following procedure:

cd vim
./configure --with-features=huge \
            --enable-rubyinterp \
            --enable-pythoninterp \
            --with-python-config-dir=/usr/lib/python2.7-config \
            --enable-perlinterp \
            --enable-gui=gtk2 --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install

The above instruction has been taken from the following site:

https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source

But then it produces an error that whenever GVIM runs it says YCM needs to be built from the source.

Here someone is trying to do that but encountering problems:

https://github.com/Valloric/YouCompleteMe/issues/1

So search google for ways to build a plugin from source.

No comments: