home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / compiler / tidy.vim < prev    next >
Encoding:
Text File  |  2002-11-01  |  888 b   |  26 lines

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