First 下載
github下載地址:Xvim
Second 修改
終端讀取當前版本Xcode的DVTPlugInCompatibilityUUID
defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID
然后添加到Info目錄下DVTPlugInCompatibilityUUID數組中
如圖
Third 編譯運行
如有錯誤請確認以上步驟正確并修正
Fourth 關閉并重新啟動Xcode
重啟發現Xcode中光標消失,底部出現路徑,點擊i進入編輯模式,按Esc退出模式。
如圖
后記
最后一步出現問題或多次重啟Xcode依然無法成功加載XVim。
Xcode沒有在啟動時彈出是否加載插件的對話框,導致插件沒有執行插件加載。終端使用如下命令:
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.3.1