Installing vim with ruby support (+ruby)

后端 未结 13 2114
萌比男神i
萌比男神i 2020-12-04 07:37

I\'m trying to get command-t installed for vim but my current version of vim doesn\'t have the (+ruby) flag. The command \"which ruby\" shows that ruby is installed.

13条回答
  •  庸人自扰
    2020-12-04 07:46

    I think "Compiling Vim With Ruby Integration On Snow Leopard" might actually help. I'm on exactly same boat at the moment.


    Ok... got it to work. Took me like half hour or so.

    This should help (I got Ubuntu):

    sudo apt-get install mercurial
    hg clone https://vim.googlecode.com/hg/ vim
    cd vim
    ./configure --enable-rubyinterp
    make
    sudo make install
    

    To test if things look fancy:

    vim --version | grep ruby
    

    Should return something like:

    -python3 +quickfix +reltime -rightleft +ruby +scrollbind +signs +smartindent
    

    Ruby should have plus now. Another trick to test it - enter vim and hit :ruby 1. Should not fail.

提交回复
热议问题