执行命令安装vim 注意要加上--with-override-system-vi
1 | brew install vim --with-override-system-vi |
安装过程中如果出现 ruby.h找不到
执行下面的命令
1 | cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby |
1 | sudo ln -s ../universal-darwin15/ruby/config.h ./config.h |
注意不要复制上面的, 对应自己的sdk版本,ruby版本,darwin版本