2016-12-23 33 views
0

我在一個linux C++項目開發團隊中,團隊構建系統將構建結果轉儲到名爲「build.result」的文件中。如何讓vim quickFix窗口加載生成結果文件?

我檢查從另一個同事建立的問題,並有vi的這個「build.result」和那些由線查線建設誤差修改(GCC編譯,鏈接等),然後用另一終端改變代碼。

這是不方便的,我想知道,如果

1. vim can use "quickfix" window to load this "build.result" 
2. so that I can traverse errors lines that has file names, and press "enter" to open them. 

感謝。

回答

2

嘗試​​


             -q -qf 
-q [errorfile] QuickFix mode. The file with the name [errorfile] is read 
       and the first error is displayed. See quickfix. 
       If [errorfile] is not given, the 'errorfile' option is used 
       for the file name. See 'errorfile' for the default value. 
       {not in Vi} 
+0

謝謝,我能做到使用任何內部命令相同Vim裏面? – Troskyvs

+0

您可以使用':copen' –

+0

對不起,我的意思是,在vim裏面,我可以在quickfix窗口中打開這個「build.result」嗎?似乎「:copen」只有打開並且空窗口,如果我已經在vim中。謝謝。 – Troskyvs

相關問題