Vim filetype plugin for XML files
Switch branches/tags
Nothing to show
Clone or download
chrisbra Reintroduce the use_syntax_check argument
This reverts partially commit 727e153.

The use_syntax_check argument of the main XmlIndentGet() function is not
used by the xml indent script at all, however, the docbk.vim indent
script uses this parameter (with value=0) to re-indent docbook
filetypes.

So, we cannot simply remove it. Leave it here and send a new indent
script for inclusion with Vim.
Latest commit 950509d Dec 11, 2018

README.md

vim-xml-ftplugin

Vim xml runtime files

The official XML runtime files for Vim. They include:

Once in a while, a snapshot from here will be send to Bram for inclusion and distribution with Vim

This filetype plugin contains an xmlformatting plugin in the autoload directory:

XMLFormat

A Vim plugin to pretty print xml

This plugin tries to format xml prettier. To use it, set the formatexpr option in Vim to xmlformat#Format() and reformat your document using gq

Installation

Use the plugin manager of your choice.

Usage

In your XML document enter:

:set formatexpr=xmlformat#Format()

Then reformat using gq

License & Copyright

© 2018 by Christian Brabandt. The Vim license (see :h license) applies to the Vim plugin, the shell script is licensed under the BSD license.

NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK