## Vim ###############################

* install vim with lua under HOME dir (Linux) +---------------------------------------------------------------------------+ | $ ./configure --prefix=/home/ekawa/local --enable-multibyte \ | | --enable-xim --enable-fontset --enable-rubyinterp --enable-perlinterp \ | | --enable-pythoninterp --with-features=huge --disable-selinux \ | | --enable-luainterp@ --with-lua-prefix=/home/ekawa/local@ | +---------------------------------------------------------------------------+ NOTE : if retry configure after failure, remove cache +----------------------------+ | $ rm src/auto/config.cache | +----------------------------+ % install lua under HOME dir edit <lua_src_dir>/Makefile +--------------------------+ | INSTALL_TOP=<local_dir>@ | +--------------------------+ edit <lua_src_dir>/src/luaconf.h +-----------------------------------+ | #define@ LUA_ROOT@ "<local_dir>"@ | +-----------------------------------+ +------------------------------+ | $ make linux && make install | +------------------------------+ at <lua_src_dir> * install vim with luajit instead of lua (Linux) +------------------------------------------------------------------------------------+ | $ ./configure --prefix=/home/ekawa/local --enable-multibyte --enable-xim \ | | --enable-fontset --enable-rubyinterp --enable-perlinterp --enable-pythoninterp \ | | --with-features=huge --disable-selinux --enable-luainterp@ \ | | --with-lua-prefix=/home/ekawa/local@ --with-luajit@ | +------------------------------------------------------------------------------------+ % install luajit under HOME dir edit /home/ekawa/local/<luajit_src_dir>/Makefile +----------------------------------+ |^export PREFIX= /home/ekawa/local^| +----------------------------------+ +------------------------+ | $ make && make install | +------------------------+ NOTE : export LD_LIBRARY_PATH=/home/ekawa/local/lib check  :lua print(jit.version) * install vim with lua by homebrew (Mac) +------------------------------------+ | $ brew install -f@ vim --with-lua@ | +------------------------------------+ NOTE : install lua before vim +--------------------+ | $ brew install lua | +--------------------+ * install vim with luajit instead of lua (Mac) edit /usr/local/Library/Formula/vim.rb +-----------------+ | $ brew edit vim | +-----------------+ +------------------------------------------------------+ | system "./configure", "--prefix=#{HOMEBREW_PREFIX}", | | "--mandir=#{man}", | | "--enable-gui=no", | | "--without-x", | | "--enable-multibyte", | | "--with-tlib=ncurses", | | "--enable-cscope", | | "--with-features=huge", | | "--with-luajit",@ | | "--with-compiledby=Homebrew", | +------------------------------------------------------+ +--------------+ | $ git commit | +--------------+ at /usr/local/Library/Formula  +------------------------------------+ | $ brew install -f@ vim --with-lua@ | +------------------------------------+ check  :lua print(jit.version) NOTE : install luajit before vim +-----------------------+ | $ brew install luajit | +-----------------------+ * install vim with python under HOME dir (Linux) +-----------------------------------------------------------------------+ | $ ./configure CPPFLAGS=-I/home/ekawa/local/include/python2.7@ \ | | LDFLAGS=-L/home/ekawa/local/lib/python2.7@ --enable-pythoninterp@ \ | | --with-python-config-dir=/home/ekawa/local/lib/python2.7/config@ \ | | --prefix=/home/ekawa/local .... | +-----------------------------------------------------------------------+ NOTE : I succeeded this by using python2.7-2.7.5 * start without X server +----------+ | $ vim -X | +----------+ same as set clipboard=exclude:.* in .vimrc NOTE : start time become shorter if no need to use clipboard * modeline [text]{white}{vi:|vim:|ex:}[white]{options} e.g.  vi:noai:sw=3 ts=6 [text]{white}{vi:|vim:|ex:}[white]se[t] {options}:[text] e.g.  /* vim: set ai tw=75: */