Last active
December 14, 2015 22:59
-
-
Save raimon49/5162247 to your computer and use it in GitHub Desktop.
XREAの新規サーバでVimをインストール。XREA+お試し期間にしておかないとquotaで死ぬ。cat patches/7.3.* | patch -p0だとパッチあてるのに失敗するのでfor文で。
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
# Vim本体の取得 | |
$ wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | |
$ bunzip2 vim-7.3.tar.bz | |
$ tar xf vim-7.3.tar | |
# 最新のパッチを取得 | |
$ cd vim73 | |
$ mkdir patches | |
$ cd patches | |
$ curl -O 'http://ftp.nluug.nl/vim/patches/7.3/7.3.[001-861]' | |
# パッチを適用してインストール | |
$ cd .. | |
$ for i in `ls patches/7.3.*`; do patch -p0 < $i; done | |
$ ./configure --with-features=big --enable-multibyte --without-x --disable-gui --prefix=$HOME/local | |
$ make | |
$ make install | |
# お疲れ様でした | |
$ export PATH="${HOME}/local/bin:${PATH}" | |
$ vim --version | |
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 15 2013 00:04:35) | |
Included patches: 1-861 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment