Skip to content

Instantly share code, notes, and snippets.

@varvaruc
Created November 14, 2013 19:09
Show Gist options
  • Save varvaruc/7472532 to your computer and use it in GitHub Desktop.
Save varvaruc/7472532 to your computer and use it in GitHub Desktop.
The trick seems to be setting a proper vimruntime dir while invoking make, and having below ones
--enable-gui=gnome2
--with-x=yes
in list of switches for configure script.
Here's my test build script which seems to be giving the required result.
mkdir /tmp/vimbuild; cd /tmp/vimbuild
wget -c ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar -xjvf vim-7.4.tar.bz2
cd vim74
\rm -rf src/auto/config.cache
make clean
./configure --prefix=/usr --with-compiledby="megazoe" \
--with-features=huge --enable-rubyinterp \
--enable-pythoninterp --enable-python3interp \
--disable-tclinterp --with-x=yes \
--enable-xim --enable-multibyte \
--enable-gui=gnome2 \
--enable-luainterp --enable-perlinterp \
--enable-cscope \
--enable-netbeans 2>&1
make -j20 VIMRUNTIMEDIR=/tmp/vimbuild/vim74/runtime/
if [ -f src/vim ]
then
\cp -f src/vim src/gvim
strip src/gvim
./src/gvim &
fi
Having the final executable named as 'gvim' is important, else it needs to be invoked as vim -g for being in GUI mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment