codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: svg3"4" This runtime file is looking for a new maintainer.5"6" Former maintainer: Dan Sharp7" Last Change: 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 = "XML Files (*.xml)\t*.xml\n"20if has("win32")21 let s:browsefilter .= "All Files (*.*)\t*\n"22else23 let s:browsefilter .= "All Files (*)\t*\n"24endif25 26runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim27let b:did_ftplugin = 128 29" Override our defaults if these were set by an included ftplugin.30if exists("b:undo_ftplugin")31 let s:undo_ftplugin = b:undo_ftplugin32endif33if exists("b:browsefilter")34 let s:browsefilter = b:browsefilter35endif36 37" Change the :browse e filter to primarily show xml-related files.38if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")39 let b:browsefilter="SVG Files (*.svg)\t*.svg\n" . s:browsefilter40endif41 42" Undo the stuff we changed.43let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin44 45" Restore the saved compatibility options.46let &cpo = s:save_cpo47unlet s:save_cpo48 