rubyunit.vim 798 B

123456789101112131415161718192021222324252627282930313233343536
  1. " Vim compiler file
  2. " Language: Test::Unit - Ruby Unit Testing Framework
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " URL: https://github.com/vim-ruby/vim-ruby
  5. " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
  6. if exists("current_compiler")
  7. finish
  8. endif
  9. let current_compiler = "rubyunit"
  10. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  11. command -nargs=* CompilerSet setlocal <args>
  12. endif
  13. let s:cpo_save = &cpo
  14. set cpo-=C
  15. CompilerSet makeprg=testrb
  16. " CompilerSet makeprg=ruby\ -Itest
  17. " CompilerSet makeprg=m
  18. CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
  19. \%C%m\ [%f:%l]:,
  20. \%E\ %\\+%\\d%\\+)\ Error:,
  21. \%C%m:,
  22. \%C\ \ \ \ %f:%l:%.%#,
  23. \%C%m,
  24. \%Z\ %#,
  25. \%-G%.%#
  26. let &cpo = s:cpo_save
  27. unlet s:cpo_save
  28. " vim: nowrap sw=2 sts=2 ts=8: