sponsor Vim development Vim logo Vim Book Ad

XML Folding : Folds XML / HTML Tags, CDATA and comments

 script karma  Rating 66/57, Downloaded by 4555  Comments, bugs, improvements  Vim wiki

created by
Thadeu de Paula
script type
It pretend to be the fold solution for all XML/HTML/SVG and other xml derivated...

This script supports:

Tag folds between two different lines: <tag> </tag>
Comments folds: <!-- comment -->
CDATA folds content between "<!<CDATA[" and "]]>"
install details
You only need to download it and run under your XML/HTML file with the

:so XMLFolding.vim

or, if you want to, add this line into your ~/.vimrc:

au BufNewFile,BufRead *.xml,*.htm,*.html so XMLFolding

Doing this, always the script will be loaded on open these files.
Dont forget to put the correct path to access the file!!!

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
XMLFolding.vim 1.1 2006-05-13 6.0 Thadeu de Paula In this version... only lines started and ended by a tag ,without spaces before, are used to make an folding... with this rule, the folding errors will be less!!!
XMLFolding.vim 1.0 2006-01-03 6.0 Thadeu de Paula 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.