编译vim以支持lua

通过brew install vim安装vim后,发现其不支持lua,导致有一部分插件没法使用,于是想自己重新编译一个vim.

  1. 下载源代码

    git clone https://github.com/vim/vim.git   
    cd vim
    
  2. 设置编译参数

    如果要添加python/lua等的支持,需要保证其在vi的默认路径里,或者需要手动指定,否则该语言的特性支持就会失效

    ./configure --with-features=huge --enable-rubyinterp \    
    --enable-pythoninterp --enable-luainterp --with-lua-prefix=/usr/local/ 
    --enable-perlinterp --enable-multibyte --enable-sniff  --enable-fontset --enable-cscope \    
    --disable-gui --prefix=/opt/local/vim  
    
    --with-features=huge:支持最大特性  
    --enable-rubyinterp:启用Vim对ruby的支持  
    --enable-pythoninterp:启用Vim对python的支持  
    --enable-luainterp:启用Vim对lua的支持  
    --with-lua-prefix:指定lua的安装路径,默认为$LUA_PREFIX或者/usr 
    --enable-perlinterp:启用Vim对perl的支持  
    --enable-multibyte:多字节支持 可以在Vim中输入中文  
    --enable-sniff:Vim状态提示 提示Vim当前处于INSERT、NORMAL、VISUAL哪种模式  
    --enable-cscope:Vim对cscope支持  
    --disable-gui:不用编译生成图形界面版gvim  
    --prefix=/opt/local/vim:编译安装路径  
    
  3. 编译\安装

    make    
    make install
    
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MinGW 编译的 Windows 版 Vim,包含非官方补丁:中文行禁则('encoding' 选项为 UTF-8 时才会生效)。脚本语言支持有:Python 2.7、Python 3.3、Ruby 2.0.0、Lua 5.2(只需要能找到 lua52.dll 文件已经自带 lua52.dll 文件,方便各位使用 neocomplete 插件)。 md5sum: 1acd40c636111e838e0ec20792c04ff3 VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 30 2013 23:16:32) MS-Windows 64 位图形界面版本 带 OLE 支持 包含补丁: 1-110 修改者 百合仙子 编译者 百合仙子@次美好的百合森林 巨型版本 带图形界面。 可使用(+)与不可使用(-)的功能: +acl +eval +mouse +syntax +arabic +ex_extra -mouseshape +tag_binary +autocmd +extra_search +multi_byte_ime/dyn +tag_old_static -balloon_eval +farsi +multi_lang -tag_any_white -browse +file_in_path -mzscheme -tcl ++builtin_terms +find_in_path -netbeans_intg -tgetent +byte_offset +float +path_extra -termresponse +cindent +folding -perl +textobjects +clientserver -footer +persistent_undo +title +clipboard +gettext/dyn -postscript -toolbar +cmdline_compl -hangul_input +printer +user_commands +cmdline_hist +iconv/dyn +profile +vertsplit +cmdline_info +insert_expand +python/dyn +virtualedit +comments +jumplist +python3/dyn +visual +conceal +keymap +quickfix +visualextra +cryptv +langmap +reltime +viminfo +cscope +libcall +rightleft +vreplace +cursorbind +linebreak +ruby/dyn +wildignore +cursorshape +lispindent +scrollbind +wildmenu +dialog_con +listcmds +signs +windows +diff +localmap +smartindent +writebackup +digraphs +lua/dyn -sniff -xfontset -dnd +menu +startuptime -xim -ebcdic +mksession +statusline -xterm_save +emacs_tags +modify_fname -sun_workshop -xpm_w32 详情及更新: http://lilydjwg.is-programmer.com/pages/19540.html#win-vim

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值