diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2014-05-06 10:40:29 +0200 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2014-05-06 10:40:29 +0200 |
| commit | 9d7d9af718c480979f5539c032fb34574c55fe53 (patch) | |
| tree | 501f030403650650d39ee13ae8d152c0d205e2b0 | |
| parent | 4d1f5dbada37257b7db1fbf616f7d6eadb3e9623 (diff) | |
| download | dotfiles-9d7d9af718c480979f5539c032fb34574c55fe53.tar.gz dotfiles-9d7d9af718c480979f5539c032fb34574c55fe53.zip | |
vim: added a script to compile vim from the mercurial repo.
| -rwxr-xr-x | install-vim.sh | 47 |
1 files changed, 47 insertions, 0 deletions
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 + |
