Installing vim with ruby support (+ruby)

后端 未结 13 2107
萌比男神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:53

    If there isn't a Ruby enabled Vim available for your operating system, you'll have to recompile. This is very easy and there are some instructions on the Vim website I believe. If you're on Linux, you use configure to choose what you want. Have a look at the output of:

    ./configure --help
    

    in the Vim source directory. Read it carefully, there are a lot of options in there. The main one you want is --enable-rubyinterp, but you may also want to add --with-features=HUGE among others. As I said, read the help provided.

提交回复
热议问题