efm_filter.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. [adopted from a message that Ives posted in the Vim mailing list]
  2. Some compilers produce an error message that cannot be handled with
  3. 'errorformat' in Vim. Following is an example of a Perl script that
  4. translates one error message into something that Vim understands.
  5. The compiler that generates this kind of error messages (4 lines):
  6. "/tmp_mnt/cm/src/apertos/MoU/MetaCore/MetaCore/common/src/MetaCoreImp_M.cc",
  7. line 50: error(3114):
  8. identifier "PRIMITIVE_M" is undefined
  9. return(ExecuteCore(PRIMITIVE_M,
  10. You can find a small perl program at the end.
  11. The way I use it is:
  12. :set errorformat=%f>%l:%c:%t:%n:%m
  13. :set makeprg=clearmake\ -C\ gnu
  14. :set shellpipe=2>&1\|\ vimccparse
  15. If somebody thinks this is useful: feel free to do whatever you can think
  16. of with this code.
  17. -Ives
  18. ____________________________________________________________
  19. Ives Aerts (SW Developer) Sony Telecom Europe
  20. ives@sonytel.be St.Stevens Woluwestr. 55
  21. `Death could create most things, B-1130 Brussels, Belgium
  22. except for plumbing.' PHONE : +32 2 724 19 67
  23. (Soul Music - T.Pratchett) FAX : +32 2 726 26 86