看板 Editor 關於我們 聯絡資訊
(OS是XP) cmd.exe是Windows版vim預設的外部shell (在vim中輸入:echo &shell會看到C:\Windows\system32\cmd.exe) 也就是輸入:![some_command]後vim會用這個 shell 來執行 some_command: C:\Windows\system32\cmd.exe /c some_command 安裝Cygwin後我想把這個 shell 改成 mintty (路徑是C:\cygwin\bin\mintty.exe) 在.vimrc中輸入set shell=C:\\cygwin\\bin\\mintty.exe後 我發現輸入:!some_command後會是這樣: C:\cygwin\bin\mintty /c some_command 其中 /c 是cmd.exe的參數 不應該出現在這的 查了很多 help 還是不知道為什麼會出現這種情況 orz 請問有人知道要怎麼把他去掉嗎? 補個圖: http://i.imgur.com/DIIlq.jpg -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.46 ※ 編輯: Holocaust123 來自: 140.112.30.46 (04/18 07:45)
Holocaust123:自問自答... :h shellcmdflag 04/18 09:06