Skip to content

Instantly share code, notes, and snippets.

@yunlingz
Created January 28, 2020 13:20
Show Gist options
  • Select an option

  • Save yunlingz/a25e873863065cf0a5ad4851342818b6 to your computer and use it in GitHub Desktop.

Select an option

Save yunlingz/a25e873863065cf0a5ad4851342818b6 to your computer and use it in GitHub Desktop.
Build vim from src on macOS
#!/bin/bash
# brew install gettext lua perl python (ruby)
./configure --prefix=$HOME/opt/vim \
--with-features=huge \
--enable-multibyte \
--enable-cscope \
--with-compiledby="chuling <[email protected]>" \
--enable-perlinterp \
--enable-rubyinterp \
--enable-python3interp \
--with-python3-config-dir=$($(brew --prefix python3)/bin/python3-config --configdir) \
--enable-luainterp \
--with-lua-prefix=$(brew --prefix lua) \
--enable-terminal \
--enable-gui=no \
--with-x=no \
--enable-fail-if-missing
# add these to your ~/.*profile
# export PATH="$HOME/opt/vim/bin:$PATH"
# export MANPATH="$HOME/opt/vim/share/man:$MANPATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment