有些時候, 如果遷移了mac, 會造成Vim無法使用.
vim Podfile 報錯
dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib
Referenced from: /usr/local/Cellar/macvim/8.0-142/MacVim.app/Contents/bin/../MacOS/Vim
Reason: image not found
[1] 4561 abort vim podfile
解決方法1
$ brew uninstall macvim
$ brew install macvim --with-lua --with-override-system-vim --with-luajit
執(zhí)行完之后, 如果命令行有提示, 繼續(xù)跟著做
如果上面的方法無效,使用方法2
解決方法2
如果報錯信息出現(xiàn)了
Vim: Caught deadly signal ABRT
Vim: Finished.
Abort trap: 6
那么就這樣做
$ brew reinstall python --framework
$ brew reinstall vim
$ cd ~/.vim/bundle/YouCompleteMe
$ ./install.sh