# HG changeset patch # User Meredith Howard # Date 1512505312 18000 # Node ID 0c78da269df5a1364c3501e4482532e639533402 # Parent f3e2c22ea809b88f83ccb32026d2cfd8efdcec3a add compiler/rubocop.vim diff --git a/.vim/compiler/rubocop.vim b/.vim/compiler/rubocop.vim 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 +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