neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

ant.vim (1484B)


      1 " Vim filetype plugin file
      2 " Language:		ant
      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 
     10 if exists("b:did_ftplugin") | finish | endif
     11 
     12 " Make sure the continuation lines below do not cause problems in
     13 " compatibility mode.
     14 let s:save_cpo = &cpo
     15 set cpo-=C
     16 
     17 " Define some defaults in case the included ftplugins don't set them.
     18 let s:undo_ftplugin = ""
     19 let s:browsefilter = "XML Files (*.xml)\t*.xml\n"
     20 if has("win32")
     21    let s:browsefilter .= "All Files (*.*)\t*\n"
     22 else
     23    let s:browsefilter .= "All Files (*)\t*\n"
     24 endif
     25 
     26 runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
     27 let b:did_ftplugin = 1
     28 
     29 " Override our defaults if these were set by an included ftplugin.
     30 if exists("b:undo_ftplugin")
     31    let s:undo_ftplugin = b:undo_ftplugin
     32 endif
     33 if exists("b:browsefilter")
     34    let s:browsefilter = b:browsefilter
     35 endif
     36 
     37 " Change the :browse e filter to primarily show Ant-related files.
     38 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
     39    let b:browsefilter = "Build Files (build.xml)\tbuild.xml\n" .
     40 	\	 "Java Files (*.java)\t*.java\n" .
     41 	\	 "Properties Files (*.prop*)\t*.prop*\n" .
     42 	\	 "Manifest Files (*.mf)\t*.mf\n" .
     43 	\	 s:browsefilter
     44 endif
     45 
     46 " Undo the stuff we changed.
     47 let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin
     48 
     49 " Restore the saved compatibility options.
     50 let &cpo = s:save_cpo
     51 unlet s:save_cpo