##Install dependency
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
##Configure
./configure --with-features=huge --enable-gui=gnome2 ----enable-pythoninterp=yes
OR
./configure \
--enable-cscope \
--with-features=huge \
--with-x \
--with-compiledby="Senor QA <senor@qa>"
##Make and check
make -j8
src/vim --version
you will see +clipboard feature enabled
##Install make install
##To make it default You can uninstall the vim in your system first and install your. Alternatively, following the following instructions to make your newly build one default
To make newly installed version “/usr/local/bin/vim” the default one, we’ll use “update-alternatives”.
sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1
sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1
sudo update-alternatives --config vim
sudo update-alternatives --config vi
sudo update-alternatives --config gvim
ls -lah /usr/bin/vim
to check it's a link to your new vim
build vimgdb
vim-7.4.tar.bz2 http://www.vim.org/sources.php
vimgdb-for-vim7.4 (this patch) https://github.com/larrupingpig/vimgdb-for-vim7.4
tar xvf vim-7.4.tar.bz2
patch -p0 < vimgdb-for-vim7.4/vim74.patch
sudo apt-get build-dep vim
cd vim74
./configure --with-features=huge --enable-gui=gnome2 --enable-rubyinterp --enable-pythoninterp --enable-gdb
make -j4
sudo make install
if you got segment fault
make CFLAGS="-O2 -D_FORTIFY_SOURCE=1" -j4
sudo make install