aboutsummaryrefslogtreecommitdiff
path: root/install-vim.sh
blob: 1396f02806ef050e22c953a157ba2274d31fe1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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
  cd vim
  hg pull
  hg update
  cd ..
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