$ sudo apt-get install xclip clang
$ hg clone https://code.google.com/p/vim/
$ cd vim
##Note: python-config-dir should be set according to real situation.
$./configure -with-features=huge --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-perlinterp=yes --enable-luainterp=yes --enable-sniff --enable-multibyte --enable-xim --enable-fontset --enable-gtk2-check --enable-gnome-check --enable-gui=auto --enable-cscope --with-python-config-dir=/usr/lib/python2.7/config --with-x --prefix=/usr > configure_output.txt
$ make
$ sudo make install