xmllint.vim 534 B

12345678910111213141516171819202122232425
  1. " Vim compiler file
  2. " Compiler: Libxml2 Command-Line Tool
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Apr 03
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "xmllint"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. CompilerSet makeprg=xmllint\ --valid\ --noout
  12. CompilerSet errorformat=%E%f:%l:\ %.%#\ error\ :\ %m,
  13. \%W%f:%l:\ %.%#\ warning\ :\ %m,
  14. \%-Z%p^,
  15. \%C%.%#,
  16. \%terror:\ %m,
  17. \%tarning:\ %m,
  18. \%-G%.%#
  19. let &cpo = s:cpo_save
  20. unlet s:cpo_save