当当前目录与带有错误的文件同级目录时,我很难找到要使用的正确的Vim errorformat。例如:errorformat/modelVim的makeprg选项设置为在errorformat/spec中执行文件。为了进行测试,我正在errorformat/model/errorformat.vim中运行以下代码
set makeprg=ruby\ ~/
我正在编写一个errorformat字符串,它在很大程度上起作用。show in the QuickFix window|| Some text I want to show in the QuickFix window^Mset errorformat=%+GSome text%mset errorformat=%+GSome text%m%-G^M%.%#
但是它会抛出一个错误
我决定增量地设置我的errorformat,首先是lint,然后为编译器添加一个模式。file C:\Documents and Settings\user\Projects\MyProject\trunk\src\myfile.c) not referencedset errorformat然后,我尝试按如下方式进行设置然后它就停止工作了。
有人知道问题出在哪里吗?我确实通读了文档,但它没有帮助。