.vim/compiler/rubocop.vim

Sun, 18 Feb 2018 16:27:03 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 18 Feb 2018 16:27:03 -0500
changeset 692
4573c0ed4d0d
parent 660
0c78da269df5
permissions
-rw-r--r--

Actually just Import::Into

660
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 if exists("current_compiler")
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 finish
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 endif
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 let current_compiler = "rubocop"
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 if exists(":CompilerSet") != 2
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 command -nargs=* CompilerSet setlocal <args>
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 endif
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 let s:savecpo = &cpo
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 set cpo&vim
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 CompilerSet makeprg=rubocop\ -f\ c\ %
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%E%f:%l:\ %m
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 let &cpo = s:savecpo
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 unlet s:savecpo

mercurial