home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / usr / share / vim / vim60 / compiler / tidy.vim < prev    next >
Encoding:
Text File  |  2002-06-19  |  831 b   |  25 lines

  1. " Vim compiler file
  2. " Compiler:     HTML Tidy
  3. " Maintainer:   Doug Kearns <djkea2@mugca.cc.monash.edu.au>
  4. " Last Change:  2001 Sep 20
  5.  
  6. " NOTE: set 'tidy_compiler_040800' if you are using the 4th August 2000 release
  7. "       of HTML Tidy.
  8.  
  9. if exists("current_compiler")
  10.   finish
  11. endif
  12. let current_compiler = "tidy"
  13.  
  14. " this is needed to work around a bug in the 04/08/00 release of tidy which
  15. " failed to set the filename if the -quiet option was used
  16. if exists("tidy_compiler_040800")
  17.   setlocal makeprg=tidy\ -errors\ --gnu-emacs\ yes\ %
  18. else
  19.   setlocal makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
  20. endif
  21.  
  22. " sample warning:    foo.html:8:1: Warning: inserting missing 'foobar' element
  23. " sample error:      foo.html:9:2: Error: <foobar> is not recognized!
  24. setlocal errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%#
  25.