Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim filetype plugin file |
| 2 | " Language: sgml |
Bram Moolenaar | 1588bc8 | 2022-03-08 21:35:07 +0000 | [diff] [blame] | 3 | " |
| 4 | " This runtime file is looking for a new maintainer. |
| 5 | " |
| 6 | " Former maintainer: Dan Sharp |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 7 | " Last Changed: 20 Jan 2009 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | |
| 9 | if exists("b:did_ftplugin") | finish | endif |
| 10 | |
| 11 | " Make sure the continuation lines below do not cause problems in |
| 12 | " compatibility mode. |
| 13 | let s:save_cpo = &cpo |
| 14 | set cpo-=C |
| 15 | |
| 16 | " Define some defaults in case the included ftplugins don't set them. |
| 17 | let s:undo_ftplugin = "" |
| 18 | let s:browsefilter = "XML Files (*.xml)\t*.xml\n" . |
| 19 | \ "All Files (*.*)\t*.*\n" |
| 20 | |
| 21 | runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim |
| 22 | let b:did_ftplugin = 1 |
| 23 | |
| 24 | " Override our defaults if these were set by an included ftplugin. |
| 25 | if exists("b:undo_ftplugin") |
| 26 | let s:undo_ftplugin = b:undo_ftplugin |
| 27 | endif |
| 28 | if exists("b:browsefilter") |
| 29 | let s:browsefilter = b:browsefilter |
| 30 | endif |
| 31 | |
| 32 | " Change the :browse e filter to primarily show xml-related files. |
| 33 | if has("gui_win32") |
| 34 | let b:browsefilter="SGML Files (*.sgml,*.sgm)\t*.sgm*\n" . s:browsefilter |
| 35 | endif |
| 36 | |
| 37 | " Undo the stuff we changed. |
| 38 | let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin |
| 39 | |
| 40 | " Restore the saved compatibility options. |
| 41 | let &cpo = s:save_cpo |
Bram Moolenaar | 84f7235 | 2012-03-11 15:57:40 +0100 | [diff] [blame] | 42 | unlet s:save_cpo |