Vim tries to jump to nonexistent file after :make

后端 未结 3 668
执笔经年
执笔经年 2020-12-20 21:50

I\'m using :make from vim and ending up jumping to the file with issues.

Recently, at least I noticed with gcc 4.6.1, vi

3条回答
  •  无人及你
    2020-12-20 21:56

    This a bug that is solved on new versions of Vim: Bug report logs - #62169.

    You can use the following setting to solve the problem without upgrading Vim:

      set errorformat^=%-GIn\ file\ included\ from\ %f:%l:%c:,%-GIn\ file
               \\ included\ from\ %f:%l:%c\\,,%-GIn\ file\ included\ from\ %f
               \:%l:%c,%-GIn\ file\ included\ from\ %f:%l
    

    (setting extracted from latest Vim source code, from file src/option.h)

提交回复
热议问题