Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change vim ruby version

Tags:

vim

ruby

macvim

I am a noob to vim and am wanting to use the command-t plugin, got really used to that in atom. I have done everything in the github repo but am unable to follow how to change the version of ruby that my vim is using. When I try to use the command-t it throws this error...

command-t could not load the C extension.
Please see INSTALLATION and TROUBLESHOOTING in the help
VIM Ruby version 2.0.0-p648
Expected version 2.4.1-p111
for more information type:   :help command-t

Except like I said, I'm having a hard time following the help on the repo and there it tells me that there is no help for command-t. So my question is, what is the best way to change my vim version?

like image 731
Int'l Man Of Coding Mystery Avatar asked Sep 24 '17 20:09

Int'l Man Of Coding Mystery


1 Answers

Try the following:

  1. $ cd ~/.vim/bundle/command-t/ruby/command-t/
  2. $ rbenv local system
  3. $ ruby extconf.rb
  4. $ make clean
  5. $ make

Taken from this post. I've had this problem before and these steps worked for me.

like image 142
garythegoat Avatar answered Oct 21 '22 00:10

garythegoat