Installing vim with ruby support (+ruby)

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

    when you run ./configure you need to add the folowing --enable-rubyinterp

    ./configure --enable-rubyinterp
    
    0 讨论(0)
  • 2020-12-04 07:51

    Flag +ruby means that vim is compiled with ruby support and linked against ruby interpreter library. You cannot get this flag without recompiling vim or installing another version which is compiled with this flag.

    0 讨论(0)
  • 2020-12-04 07:51

    If you are using MacPorts in OSX, you may try

    sudo port install vim +ruby
    

    To specify a different ruby version, you may try

    sudo port install vim +ruby18
    

    or

    sudo port install vim +ruby19
    
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-04 07:53

    Pulling the vim source using Mercurial and changing into the directory will give you the ability to configure your vim install before you compile it.

    hg clone https://vim.googlecode.com/hg/ vim
    cd vim
    ./configure --enable-rubyinterp
    

    The --enable-xxinterp option can be used for Python, Perl, or any other language that Vim will support. Just type it in where the xx is and it will work.

    Running the help option with the configure command will allow you to see all of the configuration options.

    ./configure --help
    
    0 讨论(0)
  • 2020-12-04 08:02

    Under Windows you can install Vim from here:

    http://sourceforge.net/projects/cream/files/Vim/

    Version 7.3.3 seems to be compiled with Ruby support (see release notes file). The newest 7.3.x currently is not.

    0 讨论(0)
提交回复
热议问题