"+mzscheme"でVim7をコンパイル・インストール

Vim development : vim online

% cvs -z3 -d:pserver:anonymous@cvs.sf.net:/cvsroot/vim checkout vim7

Makefileを編集。こんなんでいいのかな。

% diff Makefile.bak Makefile -u
--- Makefile.bak        2006-03-01 22:41:39.000000000 +0900
+++ Makefile    2006-03-01 22:42:07.000000000 +0900
@@ -388,9 +388,9 @@

 # MZSCHEME
 # Uncomment this when you want to include the MzScheme interface.
-#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
+CONF_OPT_MZSCHEME = --enable-mzschemeinterp
 # PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
-#CONF_OPT_PLTHOME  = --with-plthome=/usr/local/plt
+CONF_OPT_PLTHOME  = --with-plthome=/usr/local/plt
 #CONF_OPT_PLTHOME  = --with-plthome=/usr/local/drscheme
 #CONF_OPT_PLTHOME  = --with-plthome=/home/me/mz

@@ -414,7 +414,7 @@
 # It's automatically enabled with big features or IME support.
 # Note: Compile on a machine where setlocale() actually works, otherwise the
 # configure tests may fail.
-#CONF_OPT_MULTIBYTE = --enable-multibyte
+CONF_OPT_MULTIBYTE = --enable-multibyte

 # NLS - National Language Support
 # Uncomment this when you do not want to support translated messages, even
% env EXTRA_LIBS=-lm make

"env EXTRA_LIBS=-lm"付けないとPLT Schemeライブラリのリンクかなんかに失敗する。
コンパイル後、./vimを起動して:mzscheme (version)でPLT Schemeのバージョン番号が返ればOK.

# make install
# mv /usr/bin/vim /usr/bin/vim_6.3
# ln -s /usr/local/bin/vim /usr/bin/vim