spectral.vim 411 B

123456789101112131415161718
  1. " Vim compiler file
  2. " Compiler: Spectral for YAML
  3. " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
  4. " Last Change: 2021 July 21
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "spectral"
  9. if exists(":CompilerSet") != 2
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. CompilerSet makeprg=spectral\ lint\ %\ -f\ text
  13. CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m