From 9d7d9af718c480979f5539c032fb34574c55fe53 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Tue, 6 May 2014 10:40:29 +0200 Subject: vim: added a script to compile vim from the mercurial repo. --- install-vim.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 install-vim.sh (limited to 'install-vim.sh') diff --git a/install-vim.sh b/install-vim.sh new file mode 100755 index 0000000..42b199f --- /dev/null +++ b/install-vim.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +# Use this script to compile vim from the mercurial repo. You should only be +# doing this if you *really* know what you're doing. You can configure the base +# path of the vim source code with the following variable: +BASE=/opt + + +# Move to $BASE and fetch vim. +cd $BASE +if [ -d "vim" ]; then + hg pull + hg update +else + hg clone https://vim.googlecode.com/hg/ vim +fi + +# Remove the previous config. +cd vim +rm -f src/auto/config.cache + +# I configure vim with the same options as Archlinux with the following +# differences: +# +# - I don't compile support for the Perl interpreter. +# - I enable X support (so we have clipboard support). +# +# This way, vim is as tiny as possible while keeping the features I need. +./configure \ + --prefix=/usr \ + --localstatedir=/var/lib/vim \ + --with-features=huge \ + --enable-gpm \ + --enable-acl \ + --disable-gui \ + --enable-multibyte \ + --enable-cscope \ + --disable-netbeans \ + --disable-perlinterp \ + --disable-pythoninterp \ + --disable-python3interp \ + --disable-rubyinterp \ + --disable-luainterp + +# Make and make install. +make && make install + -- cgit v1.2.3