0
我正試圖讓vimdiff在我的Mac OX上運行 - 達爾文15.6和vim 7.3。當我與-V選項運行vimdiff同時,我看到下面的錯誤Mac上的Vimdiff無法正常工作
Calling shell to execute: "diff -a /var/folders/9p/2bnq24nd1qd75xn0sxg172kd6r9fpw/T/vha2EMz/0 /var/folders/9p/2bnq24nd1qd75xn0sxg172kd6r9fpw/T/vha2EMz/1 >/var/folders/9p/2bnq24nd1qd75xn0sxg172kd6r9fpw/T/vha2EMz/2"
Calling shell to execute: "diff /var/folders/9p/2bnq24nd1qd75xn0sxg172kd6r9fpw/T/vha2EMz/0 /var/folders/9p/2bnq24nd1qd75xn0sxg172kd6r9fpw/T/vha2EMz/1 >/var/folders/9p/2bnq24nd1qd75xn0sxg172kd6r9fpw/T/vha2EMz/2"
Error detected while processing function <SNR>6_VimEnter:
line 2:
E810: Cannot read or write temp files
Error detected while processing function <SNR>6_VimEnter:
line 2:
E97: Cannot create diffs
vha2EMz文件在/ var /文件夾/ 9P/2bnq24nd1qd75xn0sxg172kd6r9fpw/T不存在。我可以訪問/ var /文件夾並在其中創建目錄,所以它不是權限問題。任何人在基於Unix的系統上都有這種錯誤的經驗
我根據this檢查了我的/ usr/share/vimrc文件,但在那裏找不到MyDiff()。這是問題嗎?我應該替換/ usr/share/vimrc還是添加MyDiff定義?