.vim/compiler/rubocop.vim

Wed, 06 Feb 2019 21:03:11 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 06 Feb 2019 21:03:11 -0600
changeset 725
6ff8e3f73482
parent 660
0c78da269df5
permissions
-rw-r--r--

switch from vundle to plug

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