Vim Command-T Plugin Error: Could Not Load the C Extension

install CommandT in OsX mojave . I got Error Vim Command-T plugin error: could not load the C extension

I also met this problem after I did brew upgrade today. I fixed it by following steps:

  1. Update command-t fist.
cd ~/.vim/bundle/command-t/
git pull
git submodule update --remote --merge

  1. Update ruby
brew reinstall ruby

  1. Add ruby into PATH.
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

  1. Check ruby version is updated to 2.6
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]

  1. Build commant-t again
cd ~/.vim/bundle/command-t/
rake make

Hope those steps could solve your problem.

CommandT installation problems on windows

not a real answer but you may wanna try ctrlp instead.

  • written in vimscript (no dependency, no compiling)
  • as fast as CommandT (subjective to me)
  • has probably more features than CommandT (does CommandT have most recent file?)

there is also the good old FuzzyFinder which I haven't tried. seems like it hasn't got updated for about 2 years but it may still be working.

How to change vim ruby version

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.

vim-cmake-project error: perl not found

Your vim installation was not installed with perl.

If you look at the first couple of lines of the plugin you find.

if !has('perl')
echo 'Error: perl not found'
finish
else

has('perl') checks to see if vim has the perl feature. Since you see the output of the if statement you do not have the perl feature.

To fix this error recompile vim with perl enabled.



Related Topics



Leave a reply



Submit