Skip to content
Newer
Older
100644 46 lines (38 sloc) 1.03 KB
4984d5a @gsinclair Initial revision
gsinclair authored Jul 27, 2003
1 " Vim compiler file
ad3a6a9 @dkearns add Release-Coordinator header line and remove GPL license
dkearns authored Apr 15, 2006
2 " Language: Ruby
3 " Function: Syntax check and/or error reporting
4d5fe96 @tpope Claim abandoned runtime files
tpope authored Aug 23, 2011
4 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
699670a @dkearns Update all RubyForge URLs with new GitHub equivalents.
dkearns authored Mar 21, 2011
5 " URL: https://github.com/vim-ruby/vim-ruby
ad3a6a9 @dkearns add Release-Coordinator header line and remove GPL license
dkearns authored Apr 15, 2006
6 " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
f58baf6 @dkearns retab the header sections
dkearns authored Aug 18, 2003
7 " ----------------------------------------------------------------------------
4984d5a @gsinclair Initial revision
gsinclair authored Jul 27, 2003
8
9 if exists("current_compiler")
10 finish
11 endif
12 let current_compiler = "ruby"
13
514fc47 @dkearns update compiler plugins to use new CompilerSet command
dkearns authored Sep 4, 2004
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
15 command -nargs=* CompilerSet setlocal <args>
16 endif
17
4984d5a @gsinclair Initial revision
gsinclair authored Jul 27, 2003
18 let s:cpo_save = &cpo
19 set cpo-=C
20
21 " default settings runs script normally
22 " add '-c' switch to run syntax check only:
23 "
514fc47 @dkearns update compiler plugins to use new CompilerSet command
dkearns authored Sep 4, 2004
24 " CompilerSet makeprg=ruby\ -wc\ $*
4984d5a @gsinclair Initial revision
gsinclair authored Jul 27, 2003
25 "
26 " or add '-c' at :make command line:
27 "
28 " :make -c %<CR>
29 "
514fc47 @dkearns update compiler plugins to use new CompilerSet command
dkearns authored Sep 4, 2004
30 CompilerSet makeprg=ruby\ -w\ $*
4984d5a @gsinclair Initial revision
gsinclair authored Jul 27, 2003
31
514fc47 @dkearns update compiler plugins to use new CompilerSet command
dkearns authored Sep 4, 2004
32 CompilerSet errorformat=
4984d5a @gsinclair Initial revision
gsinclair authored Jul 27, 2003
33 \%+E%f:%l:\ parse\ error,
34 \%W%f:%l:\ warning:\ %m,
35 \%E%f:%l:in\ %*[^:]:\ %m,
36 \%E%f:%l:\ %m,
37 \%-C%\tfrom\ %f:%l:in\ %.%#,
38 \%-Z%\tfrom\ %f:%l,
39 \%-Z%p^,
40 \%-G%.%#
41
42 let &cpo = s:cpo_save
43 unlet s:cpo_save
44
b2d3cba @tpope indent/eruby.vim: fix quirk in optional argument handling
tpope authored Jun 29, 2008
45 " vim: nowrap sw=2 sts=2 ts=8:
Something went wrong with that request. Please try again.