.vim/compiler/rubocop.vim

Sun, 24 Feb 2019 00:40:58 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 24 Feb 2019 00:40:58 -0500
changeset 739
5c5a80199f95
parent 660
0c78da269df5
permissions
-rw-r--r--

clean up list/fill chars

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