File: rails.vim

package info (click to toggle)
vim-rails 5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,675 bytes parent folder | download
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