jsp.vim 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. " Vim filetype plugin file
  2. " Language: jsp
  3. "
  4. " This runtime file is looking for a new maintainer.
  5. "
  6. " Former maintainer: Dan Sharp
  7. " Last Changed: 20 Jan 2009
  8. if exists("b:did_ftplugin") | finish | endif
  9. " Make sure the continuation lines below do not cause problems in
  10. " compatibility mode.
  11. let s:save_cpo = &cpo
  12. set cpo-=C
  13. " Define some defaults in case the included ftplugins don't set them.
  14. let s:undo_ftplugin = ""
  15. let s:browsefilter = "Java Files (*.java)\t*.java\n" .
  16. \ "HTML Files (*.html, *.htm)\t*.html;*.htm\n" .
  17. \ "All Files (*.*)\t*.*\n"
  18. let s:match_words = ""
  19. runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
  20. unlet b:did_ftplugin
  21. " Override our defaults if these were set by an included ftplugin.
  22. if exists("b:undo_ftplugin")
  23. let s:undo_ftplugin = b:undo_ftplugin
  24. unlet b:undo_ftplugin
  25. endif
  26. if exists("b:browsefilter")
  27. let s:browsefilter = b:browsefilter
  28. unlet b:browsefilter
  29. endif
  30. if exists("b:match_words")
  31. let s:match_words = b:match_words
  32. unlet b:match_words
  33. endif
  34. runtime! ftplugin/java.vim ftplugin/java_*.vim ftplugin/java/*.vim
  35. let b:did_ftplugin = 1
  36. " Combine the new set of values with those previously included.
  37. if exists("b:undo_ftplugin")
  38. let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
  39. endif
  40. if exists ("b:browsefilter")
  41. let s:browsefilter = b:browsefilter . s:browsefilter
  42. endif
  43. if exists("b:match_words")
  44. let s:match_words = b:match_words . ',' . s:match_words
  45. endif
  46. " Load the combined list of match_words for matchit.vim
  47. if exists("loaded_matchit")
  48. let b:match_words = s:match_words
  49. endif
  50. " Change the :browse e filter to primarily show JSP-related files.
  51. if has("gui_win32")
  52. let b:browsefilter="JSP Files (*.jsp)\t*.jsp\n" . s:browsefilter
  53. endif
  54. " Undo the stuff we changed.
  55. let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
  56. " Restore the saved compatibility options.
  57. let &cpo = s:save_cpo
  58. unlet s:save_cpo