home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / ftplugin / docbk.vim < prev    next >
Encoding:
Text File  |  2012-05-31  |  554 b   |  25 lines

  1. " Vim filetype plugin file
  2. " Language:        DocBook
  3. " Maintainer:        Nikolai Weibull <now@bitwi.se>
  4. " Latest Revision:  2012-04-25
  5.  
  6. if exists('b:did_ftplugin')
  7.   finish
  8. endif
  9.  
  10. if !exists('b:docbk_type')
  11.   if expand('%:e') == 'sgml'
  12.     let b:docbk_type = 'sgml'
  13.   else
  14.     let b:docbk_type = 'xml'
  15.   endif
  16. endif
  17.  
  18. if b:docbk_type == 'sgml'
  19.   runtime! ftplugin/sgml.vim ftplugin/sgml_*.vim ftplugin/sgml/*.vim
  20. else
  21.   runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
  22. endif
  23.  
  24. let b:undo_ftplugin = "unlet! b:docbk_type"
  25.