robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
2f5b8a0092
master
1" Vim filetype plugin file 2" Language: dtd 3" 4" This runtime file is looking for a new maintainer. 5" 6" Former maintainer: Dan Sharp 7" Last Change: 2009 Jan 20 8" 2024 Jan 14 by Vim Project (browsefilter) 9" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring') 10 11if exists ( "b:did_ftplugin" ) |finish |endif 12let b: did_ftplugin = 1 13 14" Make sure the continuation lines below do not cause problems in 15" compatibility mode. 16let s: save_cpo = & cpo 17set cpo -= C 18 19setlocal commentstring = <!--\ %s\ --> 20setlocal comments = s:<!--,m:\ \ \ \ \ ,e:--> 21 22setlocal formatoptions -= t 23if ! exists ( "g:ft_dtd_autocomment" ) || ( g: ft_dtd_autocomment == 1 ) 24setlocal formatoptions += croql 25endif 26 27if exists ( "loaded_matchit" ) 28let b: match_words = '<!--:-->,<!:>' 29endif 30 31" Change the :browse e filter to primarily show Java-related files. 32if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 33let b: browsefilter = "DTD Files (*.dtd)\t*.dtd\n" . 34 \"XML Files (*.xml)\t*.xml\n" 35if has ( "win32" ) 36let b: browsefilter .= "All Files (*.*)\t*\n" 37else 38let b: browsefilter .= "All Files (*)\t*\n" 39endif 40endif 41 42" Undo the stuff we changed. 43let b: undo_ftplugin = "setlocal commentstring< comments< formatoptions<" . 44 \" | unlet! b:matchwords b:browsefilter" 45 46" Restore the saved compatibility options. 47let & cpo = s: save_cpo 48unlet s: save_cpo