Created
April 4, 2012 03:24
-
-
Save bootleq/2297545 to your computer and use it in GitHub Desktop.
Install/upgrade Vim from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 安裝相依套件 | |
apt-get install mercurial | |
apt-get install exuberant-ctags | |
# 取得 vim source | |
cd /usr/local/src | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd vim | |
hg pull | |
hg update | |
# checkout 特定版本 | |
# hg checkout v7-3-476 | |
# make & install | |
cd src | |
make distclean | |
# 修改 ruby lib 路徑 | |
export LDFLAGS="-L/opt/ruby/lib -lruby-static" | |
./configure --with-features=big --enable-rubyinterp | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment