2015-02-05 50 views
0

我是Vim的新手,剛剛安裝了Command T插件,使用的是vundle。當我想用它Vim裏我得到了以下錯誤Vim插件「command t」引發錯誤

Error detected while processing function commandt#CommandTShowFileFinder: 
line 2: 
LoadError: /Users/xafar/.vim/bundle/command-t/ruby/command-t/finder.rb:4:in `require': no such file to load -- command-t/ext 

我有我的Mac OS平臺Mavericks X紅寶石版ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]

我該如何解決這個問題?

+0

這個錯誤讓我覺得你沒有正確安裝命令-T做。請再次查看安裝說明。作爲替代方案,您可以使用像[CtrlP.vim](https://github.com/kien/ctrlp.vim)這樣的純vimscript插件作爲您的模糊查找器。 – 2015-02-05 22:12:42

回答

1

簡單地從Vundle安裝Command-T不會使它正常運行。它仍然需要編譯。

From the Command-T install guide -

Compiling Command-T ~ 

The C extension must be built, which can be done from the shell. If you use a 
typical Pathogen, Vundle or NeoBundle set-up then the files were installed inside 
`~/.vim/bundle/command-t`. A typical VAM installation path might be 
`~/.vim/vim-addons/command-t`. 

Wherever the Command-T files were installed, you can build the extension by 
changing to the `ruby/command-t` subdirectory and running a couple of commands 
as follows: 

    cd ~/.vim/bundle/command-t/ruby/command-t 
    ruby extconf.rb 
    make 

Note: If you are an RVM or rbenv user, you must build CommandT using the same 
version of Ruby that Vim itself is linked against. You can find out the 
version that Vim is linked against by issuing following command inside Vim: 

    :ruby puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"