.vim/compiler/rubocop.vim

Mon, 10 Aug 2020 17:51:19 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 10 Aug 2020 17:51:19 -0500
changeset 880
21a8fdcc9f38
parent 660
0c78da269df5
permissions
-rw-r--r--

Let's opt in to rerere per repo

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