1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- if exists("b:did_ftplugin") | finish | endif
- let s:save_cpo = &cpo
- set cpo-=C
- let s:undo_ftplugin = ""
- let s:browsefilter = "XML Files (*.xml)\t*.xml\n"
- if has("win32")
- let s:browsefilter .= "All Files (*.*)\t*\n"
- else
- let s:browsefilter .= "All Files (*)\t*\n"
- endif
- runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
- let b:did_ftplugin = 1
- if exists("b:undo_ftplugin")
- let s:undo_ftplugin = b:undo_ftplugin
- endif
- if exists("b:browsefilter")
- let s:browsefilter = b:browsefilter
- endif
- if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
- let b:browsefilter="XSD Files (*.xsd)\t*.xsd\n" . s:browsefilter
- endif
- let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin
- let &cpo = s:save_cpo
- unlet s:save_cpo
|