Skip to content

Instantly share code, notes, and snippets.

@raimon49
Last active December 14, 2015 22:59
Show Gist options
  • Save raimon49/5162247 to your computer and use it in GitHub Desktop.
Save raimon49/5162247 to your computer and use it in GitHub Desktop.
XREAの新規サーバでVimをインストール。XREA+お試し期間にしておかないとquotaで死ぬ。cat patches/7.3.* | patch -p0だとパッチあてるのに失敗するのでfor文で。
# 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