views:

834

answers:

2

When editing an XML file in IntelliJ IDEA, if the document references a schema, IDEA will fetch the schema and use the information for auto-complete. It knows which tags are valid in which contexts, so when you hit CTRL-space, it suggests only those tags. It also highlights any tags that are invalid according to the schema.

Does anybody know of an extension for Vim that provides similar functionality?

+2  A: 

The closest thing that I've seen for Vim is the XML Completion script.

It contains XML definition files for DocBook 4.[234], XSL FO 1.0, XSLT 1.0, Relax NG 1.0, XML Schemas 1.0, SVG 1.1, XHTML 1.1, XInclude 1.0 and OpenOffice 1.0 XML format.

CMS
Thanks, that might be sufficient.
Dan Dyer
+2  A: 

Read this document: http://www.pinkjuice.com/howto/vimxml/

Very usefull.

Oli