[vim ] 在Windows上改變vim預設的shell

看板Editor作者 (奔跑的蝸牛)時間13年前 (2011/04/18 07:43), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
(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)

04/18 09:06, , 1F
自問自答... :h shellcmdflag
04/18 09:06, 1F
文章代碼(AID): #1DgtigPl (Editor)