.vim/compiler/rubocop.vim

Sat, 26 Sep 2020 15:32:52 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 26 Sep 2020 15:32:52 -0500
changeset 886
625e5b7d33fb
parent 660
0c78da269df5
permissions
-rw-r--r--

move polyglot_disabled earlier

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