tidy.vim 861 B

123456789101112131415161718192021222324252627282930313233
  1. " Vim filetype plugin file
  2. " Language: HMTL Tidy Configuration
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2020 Sep 4
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. setlocal comments=:#,://
  12. setlocal commentstring=#\ %s
  13. setlocal formatoptions-=t formatoptions+=croql
  14. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  15. let b:browsefilter = "HTML Tidy Files (tidyrc, .tidyrc, tidy.conf)\ttidyrc;.tidyrc;tidy.conf\n" .
  16. \ "HTML Files (*.html, *.htm)\t*.html;*.htm\n" .
  17. \ "XHTML Files (*.xhtml, *.xhtm)\t*.xhtml;*.xhtm\n" .
  18. \ "XML Files (*.xml)\t*.xml\n" .
  19. \ "All Files (*.*)\t*.*\n"
  20. endif
  21. let b:undo_ftplugin = "setl fo< com< cms<" .
  22. \ " | unlet! b:browsefilter"
  23. let &cpo = s:cpo_save
  24. unlet s:cpo_save
  25. " vim: nowrap sw=2 sts=2 ts=8