From 53f7fccc9413c9f770694b56f40f242d383b2d5f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 28 Jul 2021 20:10:16 +0200 Subject: Update runtime files --- runtime/compiler/spectral.vim | 17 +++++++++++++++++ runtime/compiler/yamllint.vim | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 runtime/compiler/spectral.vim create mode 100644 runtime/compiler/yamllint.vim (limited to 'runtime/compiler') diff --git a/runtime/compiler/spectral.vim b/runtime/compiler/spectral.vim new file mode 100644 index 0000000000..bd13c51f43 --- /dev/null +++ b/runtime/compiler/spectral.vim @@ -0,0 +1,17 @@ +" Vim compiler file +" Compiler: Spectral for YAML +" Maintainer: Romain Lafourcade +" Last Change: 2021 July 21 + +if exists("current_compiler") + finish +endif +let current_compiler = "spectral" + +if exists(":CompilerSet") != 2 + command -nargs=* CompilerSet setlocal +endif + +CompilerSet makeprg=spectral\ lint\ %\ -f\ text +CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m + diff --git a/runtime/compiler/yamllint.vim b/runtime/compiler/yamllint.vim new file mode 100644 index 0000000000..889b04b63c --- /dev/null +++ b/runtime/compiler/yamllint.vim @@ -0,0 +1,16 @@ +" Vim compiler file +" Compiler: Yamllint for YAML +" Maintainer: Romain Lafourcade +" Last Change: 2021 July 21 + +if exists("current_compiler") + finish +endif +let current_compiler = "yamllint" + +if exists(":CompilerSet") != 2 + command -nargs=* CompilerSet setlocal +endif + +CompilerSet makeprg=yamllint\ -f\ parsable + -- cgit v1.2.3