rubyunit.vim 826 B

12345678910111213141516171819202122232425262728293031323334353637
  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. " Last Change: 2014 Mar 23
  7. if exists("current_compiler")
  8. finish
  9. endif
  10. let current_compiler = "rubyunit"
  11. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  12. command -nargs=* CompilerSet setlocal <args>
  13. endif
  14. let s:cpo_save = &cpo
  15. set cpo-=C
  16. CompilerSet makeprg=testrb
  17. " CompilerSet makeprg=ruby\ -Itest
  18. " CompilerSet makeprg=m
  19. CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
  20. \%C%m\ [%f:%l]:,
  21. \%E\ %\\+%\\d%\\+)\ Error:,
  22. \%C%m:,
  23. \%C\ \ \ \ %f:%l:%.%#,
  24. \%C%m,
  25. \%Z\ %#,
  26. \%-G%.%#
  27. let &cpo = s:cpo_save
  28. unlet s:cpo_save
  29. " vim: nowrap sw=2 sts=2 ts=8: