add compiler/rubocop.vim

Tue, 05 Dec 2017 15:21:52 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 05 Dec 2017 15:21:52 -0500
changeset 660
0c78da269df5
parent 659
f3e2c22ea809
child 661
622e413b364a

add compiler/rubocop.vim

.vim/compiler/rubocop.vim file | annotate | diff | comparison | revisions
new file mode 100644
--- /dev/null
+++ b/.vim/compiler/rubocop.vim
@@ -0,0 +1,17 @@
+if exists("current_compiler")
+  finish
+endif
+let current_compiler = "rubocop"
+
+if exists(":CompilerSet") != 2
+  command -nargs=* CompilerSet setlocal <args>
+endif
+
+let s:savecpo = &cpo
+set cpo&vim
+
+CompilerSet makeprg=rubocop\ -f\ c\ %
+CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%E%f:%l:\ %m
+
+let &cpo = s:savecpo
+unlet s:savecpo

mercurial