.cc don't move to the error line

9 views
Skip to first unread message

Marc Chantreux

unread,
Jul 13, 2025, 3:04:13 PMJul 13
to vim...@googlegroups.com
hello people,

this is the stderr of my &mp is this simple
https://testanything.org/ report.

ok 1 - t.c 6
ok 2 - t.c 7
ok 3 - t.c 8
ok 4 - t.c 9
not ok - t.c 10
not ok - t.c 11
ok 7 - t.c 12
ok 8 - t.c 13

I wrote

:let &efm=&efm',not ok %s - %f %l'
:make|cw

and I got this:

|| ok 1 - t.c 6
|| ok 2 - t.c 7
|| ok 3 - t.c 8
|| ok 4 - t.c 9
t.c|10|
t.c|11|
|| ok 7 - t.c 12
|| ok 8 - t.c 13

When I type <enter> over 't.c|11|', vim opens the t.c
file but doesn't move at line 11.

I have no idea how to fix this :(

also I tried to catpure 'not ok' as %m but failed to understand it it is
even possible.

any help very welcome.

regards
marc

signature.asc
Reply all
Reply to author
Forward
0 new messages