From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- runtime/ftplugin/docbk.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 runtime/ftplugin/docbk.vim (limited to 'runtime/ftplugin/docbk.vim') diff --git a/runtime/ftplugin/docbk.vim b/runtime/ftplugin/docbk.vim new file mode 100644 index 0000000..cbceb6b --- /dev/null +++ b/runtime/ftplugin/docbk.vim @@ -0,0 +1,24 @@ +" Vim filetype plugin file +" Language: DocBook +" Maintainer: Nikolai Weibull +" Latest Revision: 2012-04-25 + +if exists('b:did_ftplugin') + finish +endif + +if !exists('b:docbk_type') + if expand('%:e') == 'sgml' + let b:docbk_type = 'sgml' + else + let b:docbk_type = 'xml' + endif +endif + +if b:docbk_type == 'sgml' + runtime! ftplugin/sgml.vim ftplugin/sgml_*.vim ftplugin/sgml/*.vim +else + runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim +endif + +let b:undo_ftplugin = "unlet! b:docbk_type" -- cgit v1.2.3