如何在vim的quickfix列表中强制滚动第一个错误?

时间:2015-01-03 18:25:44

标签: vim

我正在使用vim的:make来编译我的项目。编译后,我在quickfix列表中获得了所需的结果(by {copen,如果由make调用,并在由vim-dispatch和:Make触发时自动生成),但第一个错误(构建错误或测试失败) )总是在屏幕的底部,即

<some make output here>
---------<quickfix top line below>
|| make[2]: Entering directory '/home/skramer/c_test/unittest_tests/build'
|| Scanning dependencies of target soundex_test
|| make[2]: Leaving directory '/home/skramer/c_test/unittest_tests/build'
|| make[2]: Entering directory '/home/skramer/c_test/unittest_tests/build'
|| [ 33%] Building CXX object CMakeFiles/soundex_test.dir/soundex.cpp.o
|| [ 66%] Building CXX object CMakeFiles/soundex_test.dir/soundex_unittest.cpp.o
|| Linking CXX executable soundex_test
|| Running 
|| Running 15 test cases...
soundex_unittest.cpp|17| error in "Encode_SingleLetterWord_RetainsTheSoleLetter": check s.encode("A") == "A001" failed [A000 != A001]
---------<quickfix bottom line>---------
<more errors in make output follow this line>

我想将第一个make错误作为quickfix列表中的第一行。我怎样才能做到这一点?我想避免使用quickfix内容,但最终可能会接受。

0 个答案:

没有答案