sponsor Vim development Vim logo Vim Book Ad

XMLExpander : XML Pretty Printer

 script karma  Rating 0/0, Downloaded by 161    Comments, bugs, improvements  Vim wiki

created by
Data Statiker
script type
Getting Started
With the XMLExpander extension plugin for vim you can make your XML file
clear. The XMLExpander is a pretty printer for XML.

When you have the problem that your xml files are e.g. in one line or have not
clear insertions this plugin could help you. After running the XMLExpander
every opening and ending tag is in one line and have clear insertions.

First install the plugin: |xmlexpander-install|

To run the XMLExpander do the following:
- load the input XML file
- execute the XMLExpander: menu Plugin->XMLExpander <run>

Now you have a pretty printed XML file (in the same VIM window!).

For further details read the vim help file doc/xmlexpander.txt
or in VIM :help xmlexpander

The XML File must be syntactical correct! The script do not check this.

Whats New
Version 0.3
- New name: xmlexpander
- Redefine functions and variables (xmlexpander)
- New function xmlexpander#isContentText(text) to check if a text has to be harmonized
install details
Download the vimball file xmlexpander.vmb from:

Install the vimball file with VIM
1 Download the file xmlexpander.vmb
2 vim path/xmlexpander.vmb
3 :so %
4 :q

Now you have the menu Plugin->XMLExpander <Run>

To activate the helpfile in VIM type in command mode:
:helptags ~/.vim/doc
OR (Windows)
:helptags C:\Users\YourUsername\vimfiles\doc

Then you can open the helpfile with ':help xmlexpander'

GITHUB Repository:

When you have the files from GITHUB:
Copy the files of the folders 'autoload', 'doc' and 'plugin' to your
local vimfiles:
OR (Windows)

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xmlexpander.vmb 0.3 2015-04-19 7.0 Data Statiker Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo