-
-
Notifications
You must be signed in to change notification settings - Fork 384
/
Copy pathrails.vim
55 lines (48 loc) · 1.64 KB
/
rails.vim
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
" Vim compiler file
if exists("current_compiler")
finish
endif
CompilerSet errorformat=%D(in\ %f),
\%\\s%#from\ %f:%l:%m,
\%\\s%#from\ %f:%l:,
\%\\s%##\ %f:%l:%m,
\%\\s%##\ %f:%l,
\%\\s%#[%f:%l:\ %#%m,
\%\\s%#%f:%l:\ %#%m,
\%\\s%#%f:%l:,
\%m\ [%f:%l]:,
\%+Erake\ aborted!,
\%+EDon't\ know\ how\ to\ build\ task\ %.%#,
\%+Einvalid\ option:%.%#,
\%+Irake\ %\\S%\\+%\\s%\\+#\ %.%#
runtime! compiler/rake.vim
let current_compiler = "rails"
CompilerSet makeprg=rails
" CompilerSet makeprg=ruby\ bin/rails
" CompilerSet makeprg=ruby\ script/rails
CompilerSet errorformat^=
\%\\S%\\+\ \ %#%[cefi]%[rxod]%[eir]%[a-z]%#%\\x1b[0m\ %\\+%\\S%\\+%$
\%\\&%\\x1b%\\S%\\+\ \ %#%m%\\>%\\x1b[0m\ \ %#%f,
\%\\s\ %#%[cefi]%[rxod]%[eir]%[a-z]%#\ %\\+%\\S%\\+%$
\%\\&%\\s\ %#%m%\\>\ \ %#%f,
\\ %#Overwrite%.%#%\\S%\\+\ \ %#%m%\\x1b[0m\ \ %#%f,
\%-G\ %#Overwrite%.%#\"h\"%.%#,
\%+GStarted\ %\\u%\\u%.%#,
\%+GCompleted\ %\\d%\\d%\\d%.%#,
\%+G[ActiveJob]%.%#]\ Perform%.%#,
\%.%#rails\ test\ %f:%l,
\%+GCurrent\ version:%.%#,
\%+G\ %#Status\ %#Migration\ ID%.%#,
\%+G\ The\ fixture\ ID\ for\ %.%#,
\%f:\ %s\ (%m)%$
\%\\&%.%#/fixtures/%.%#(%\\d%\\+),
\%+G\ %#Prefix\ %#Verb%.%#,
\%+G\ %#Code\ LOC:\ %.%#,
\%+GAbout\ your\ application's\ environment,
\%+Grun\ %\\S%#::Application.routes,
\%+Irails\ %\\S%\\+%\\s%\\+#\ %.%#,
\%+Eruby:%.%#(LoadError),
\%+EUsage:%.%#,
\%+ECould\ not\ find\ generator%.%#,
\%+EType\ 'rails'\ for\ help.
" -complete=customlist,rails#complete_rails