Skip to content
Snippets Groups Projects

Compile Terminal Vim on macOS

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Ingo Meyer
    • Huge features
    • Support for
      • Ruby
      • Python 3
      • Perl
      • Lua
    Edited
    compile_and_install.sh 664 B
    #!/bin/bash
    
    make distclean && \
    ./configure --with-features=huge \
                --enable-multibyte \
                --enable-rubyinterp \
                --enable-python3interp \
                --with-python3-config-dir="/usr/local/lib/python3.6/config-3.6m-darwin" \
                --enable-perlinterp \
                --enable-luainterp \
                --with-lua-prefix="${HOME}/local" \
                --enable-cscope \
                --prefix="${HOME}/local" && \
    make VIMRUNTIMEDIR="${HOME}/local/share/vim/vim80" && \
    make install
    if [ "$?" == "0" ]; then
        pushd "${HOME}/local/bin"
        install_name_tool -change liblua53.dylib "${HOME}/local/lib/liblua53.dylib" vim
        popd
    fi
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment