sudo apt-get remove -y vim-tiny vim-common vim-gui-common vim vim-runtime gvim sudo apt-get install -y mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev sudo apt-get build-dep -y vim mkdir -p /tmp/vim cd /tmp/vim rm -rf vim (date && hg clone https://vim.googlecode.com/hg/ vim) 2>&1 |tee log cd vim ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-gui=gtk2 --enable-cscope --prefix=/usr --enable-luainterp=dynamic | tee -a log make | tee -a log sudo make install | tee -a log