2016-12-23 32 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

相关问题