我希望Git使用Vim。我並不陌生,至少在Unix上,它非常簡單。但是與DOS中的任何事情一樣,這似乎是毫無意義的鬥爭。我想我可能錯過了一些明顯的東西。我無法讓Git在DOS shell中使用Vim - 它說「無法運行sh」
所以我這樣做:
>git config --global core.editor "\"c:\Program Files\Vim\vim71\gvim.exe\""
但出現這種情況:
> C:\dev\qfnet\quickfix.net>git commit -a
"c:\Program Files\Vim\vim71\gvim.exe": c:\Program Files\Vim\vim71\gvim.exe: command not found
error: cannot run sh: No such file or directory
error: There was a problem with the editor '"c:\Program Files\Vim\vim71\gvim.exe"'.
Please supply the message using either -m or -F option.
我也嘗試設置EDITOR變量,具有相似的結果。
「sh」在我的路徑中,所以我不知道它爲什麼找不到它。如果我在提示符下運行「sh」,它就會正確啓動,據我所知。 (什麼試圖運行「sh」?)
感謝任何能告訴我我失蹤的人。
我喜歡它,當我谷歌的幫助,找到我的,我忘了我連問比去年同期多了問題的答案。 –