codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: xhtml3"4" This runtime file is looking for a new maintainer.5"6" Former maintainer: Dan Sharp7" Last Changed: 2009 Jan 208" 2024 Jan 14 by Vim Project (browsefilter)9 10if exists("b:did_ftplugin") | finish | endif11 12" Make sure the continuation lines below do not cause problems in13" compatibility mode.14let s:save_cpo = &cpo15set cpo-=C16 17" Define some defaults in case the included ftplugins don't set them.18let s:undo_ftplugin = ""19let s:browsefilter = "HTML Files (*.html, *.htm)\t*.html;*.htm\n" .20 \ "XML Files (*.xml)\t*.xml\n"21if has("win32")22 let s:browsefilter .= "All Files (*.*)\t*\n"23else24 let s:browsefilter .= "All Files (*)\t*\n"25endif26let s:match_words = ""27 28runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim29unlet b:did_ftplugin30 31" Override our defaults if these were set by an included ftplugin.32if exists("b:undo_ftplugin")33 let s:undo_ftplugin = b:undo_ftplugin34 unlet b:undo_ftplugin35endif36if exists("b:browsefilter")37 let s:browsefilter = b:browsefilter38 unlet b:browsefilter39endif40if exists("b:match_words")41 let s:match_words = b:match_words42 unlet b:match_words43endif44 45runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim46let b:did_ftplugin = 147 48" Combine the new set of values with those previously included.49if exists("b:undo_ftplugin")50 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin51endif52if exists("b:browsefilter")53 let s:browsefilter = b:browsefilter . s:browsefilter54endif55if exists("b:match_words")56 let s:match_words = b:match_words . "," . s:match_words57endif58 59" Load the combined list of match_words for matchit.vim60if exists("loaded_matchit")61 let b:match_words = s:match_words62endif63 64" Change the :browse e filter to primarily show tcsh-related files.65if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")66 let b:browsefilter="XHTML files (*.xhtml, *.xhtm)\t*.xhtml;*.xhtm\n" . s:browsefilter67endif68 69" Undo the stuff we changed.70let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin71 72" Restore the saved compatibility options.73let &cpo = s:save_cpo74unlet s:save_cpo75 