config.vim 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. " Vim filetype plugin file
  2. " Language: config
  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 = "Bourne Shell Files (*.sh)\t*.sh\n" .
  16. \ "All Files (*.*)\t*.*\n"
  17. let s:match_words = ""
  18. runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim
  19. let b:did_ftplugin = 1
  20. " Override our defaults if these were set by an included ftplugin.
  21. if exists("b:undo_ftplugin")
  22. let s:undo_ftplugin = b:undo_ftplugin
  23. endif
  24. if exists("b:browsefilter")
  25. let s:browsefilter = b:browsefilter
  26. endif
  27. " Change the :browse e filter to primarily show configure-related files.
  28. if has("gui_win32")
  29. let b:browsefilter="Configure Scripts (configure.*, config.*)\tconfigure*;config.*\n" .
  30. \ s:browsefilter
  31. endif
  32. " Undo the stuff we changed.
  33. let b:undo_ftplugin = "unlet! b:browsefilter | " . b:undo_ftplugin
  34. " Restore the saved compatibility options.
  35. let &cpo = s:save_cpo
  36. unlet s:save_cpo