2011-11-15 72 views
0

我在Vim中使用:make來執行makefile。生成文件有這樣的輸出:Vim的「:make」創建一個新文件

some errors ... 
... 
Tiempos 
tiempo: updateSW 0:00:00.000311 0.00956216947485 
tiempo: total 0:00:00.032524 1.0 

但make過程後,我得到這個

Press ENTER or type command to continue 
"tiempo: updateSW 0" [New File] 
(16 of 18): 00.000301 0.00922831652206 

和Vim創建一個名爲 「時代報:updateSW 0」 的新文件。爲什麼? ,爲什麼?

回答

0

倒數第二行看起來像文件中的錯誤消息:line:error格式,所以vim試圖打開文件部分(「tiempo:updateSW 0」),跳轉到錯誤行(「00」)並顯示消息(「00.000311 0.00956216947485」)。您必須更改errorformat正則表達式以避免此錯誤。