编译 VIM

61 阅读1分钟
  • 下载仓库 git clone https://github.com/vim/vim.git
  • 配置 ./configure --with-features=huge --enable-multibyte --enable-python3interp --enable-cscope --enable-gui=auto --enable-gtk2-check --enable-fontset --enable-largefile --disable-netbeans --enable-fail-if-missing
    • --with-features=huge:编译 Vim 时启用所有特性,包括支持多字节字符集、支持 Python 3、支持 cscope 等。
    • --enable-multibyte:启用多字节字符集支持。
    • --enable-python3interp:启用 Python 3 支持。
    • --enable-cscope:启用 cscope 支持。
    • --enable-gui=auto:启用 GUI 支持,自动检测可用的 GUI 工具包。
    • --enable-gtk2-check:检查 GTK2 是否可用。
    • --enable-fontset:启用字体集支持。
    • --enable-largefile:启用大文件支持。
    • --disable-netbeans:禁用 NetBeans 支持。
    • --enable-fail-if-missing:如果依赖项缺失,则编译失败。
  • 编译 make