Command-T makes macvim not work (cannot open a window)

  1. anonymous

    Hi all, I tried installing Command-T but as long as it's in the .vim/ruby/ folder, MacVim refuses to work--ie it cannot load an editor window, although it seems to be running since it is in the dock. I use rvm so I thought it might be the problem, but I tried rvm use system before the ruby and make commands with the same results. Any help would be much appreciated, this plugin looks absolutely amaazing.

  2. Greg Hurrell

    Are you using the latest MacVim snapshot? I would imagine that if you use that and build Command-T using the system Ruby then everything should work just fine.

    In any case, it is rather odd that with Command-T present the MacVim window won't even appear. Anything logged to the console?

  3. anonymous Created , edited

    Do you have Ruby Version Manager installed? That can cause problems.

    @Wincent: I found that when installing CommandT with RVM active, it is important for FIRST set you default ruby version to 1.8.7 (which MacVim was built against?) Otherwise CommandT will built against the currently active version (for me that was 1.9.2) and it won't work.

    So the solution is simple:

    • check if you have 1.8.7
    $ rvm list
    • if not, install it
    $ rvm install 1.8.7
    • set it as default (I found that 'use' was not enough...)
    $ rvm --default 1.8.7
    • install command-t with the extconf.rb and make
    $ ruby extconf.rb
    $ make
    • fire up macvim and it should work just fine!
  4. Jeroen Bourgois

    This made me wiser:

    http://jeroenbourgois.posterous.com/command-t-macvim-and-rvm

Reply

This topic is now closed.