spicycode / rcov

Home has moved to http://github.com/relevance/rcov

spicycode (author)
Fri Sep 12 07:35:41 -0700 2008
commit  9ad200c54372fcbf139af77b7f453aca6bfb7f35
tree    99590a671195f596f756a76588c5f5241816a652
parent  cdbec19579ef294dbb502c86c9b0158a2cc990e1
rcov / rcov.vim
100644 39 lines (31 sloc) 0.914 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
" Vim compiler file
" Language: Ruby
" Function: Code coverage information with rcov
" Maintainer: Mauricio Fernandez <mfp at acm dot org>
" Info:
" URL: http://eigenclass.org/hiki.rb?rcov
" ----------------------------------------------------------------------------
"
" Changelog:
" 0.1: initial version, shipped with rcov 0.6.0
"
" Comments:
" Initial attempt.
" ----------------------------------------------------------------------------
 
if exists("current_compiler")
  finish
endif
let current_compiler = "rcov"
 
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif
 
let s:cpo_save = &cpo
set cpo-=C
 
CompilerSet makeprg=rake\ $*\ RCOVOPTS=\"-D\ --no-html\ --no-color\"\ $*
 
CompilerSet errorformat=
     \%+W\#\#\#\ %f:%l\,
     \%-C\ \ \ ,
     \%-C!!\
 
let &cpo = s:cpo_save
unlet s:cpo_save
 
" vim: nowrap sw=2 sts=2 ts=8 ff=unix :