|
Revision 7191, 0.9 kB
(checked in by ishihara, 5 years ago)
|
|
dotfiles/vim/ishihara: initial import
|
| Line | |
|---|
| 1 | " Vim compiler file |
|---|
| 2 | " Language: eRuby |
|---|
| 3 | " Maintainer: Doug Kearns <dougkearns@gmail.com> |
|---|
| 4 | " Info: $Id: eruby.vim,v 1.6 2006/04/15 12:01:18 dkearns Exp $ |
|---|
| 5 | " URL: http://vim-ruby.rubyforge.org |
|---|
| 6 | " Anon CVS: See above site |
|---|
| 7 | " Release Coordinator: Doug Kearns <dougkearns@gmail.com> |
|---|
| 8 | |
|---|
| 9 | if exists("current_compiler") |
|---|
| 10 | finish |
|---|
| 11 | endif |
|---|
| 12 | let current_compiler = "eruby" |
|---|
| 13 | |
|---|
| 14 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal |
|---|
| 15 | command -nargs=* CompilerSet setlocal <args> |
|---|
| 16 | endif |
|---|
| 17 | |
|---|
| 18 | let s:cpo_save = &cpo |
|---|
| 19 | set cpo-=C |
|---|
| 20 | |
|---|
| 21 | if exists("eruby_compiler") && eruby_compiler == "eruby" |
|---|
| 22 | CompilerSet makeprg=eruby |
|---|
| 23 | else |
|---|
| 24 | CompilerSet makeprg=erb |
|---|
| 25 | endif |
|---|
| 26 | |
|---|
| 27 | CompilerSet errorformat= |
|---|
| 28 | \eruby:\ %f:%l:%m, |
|---|
| 29 | \%+E%f:%l:\ parse\ error, |
|---|
| 30 | \%W%f:%l:\ warning:\ %m, |
|---|
| 31 | \%E%f:%l:in\ %*[^:]:\ %m, |
|---|
| 32 | \%E%f:%l:\ %m, |
|---|
| 33 | \%-C%\tfrom\ %f:%l:in\ %.%#, |
|---|
| 34 | \%-Z%\tfrom\ %f:%l, |
|---|
| 35 | \%-Z%p^, |
|---|
| 36 | \%-G%.%# |
|---|
| 37 | |
|---|
| 38 | let &cpo = s:cpo_save |
|---|
| 39 | unlet s:cpo_save |
|---|
| 40 | |
|---|
| 41 | " vim: nowrap sw=2 sts=2 ts=8 ff=unix: |
|---|