Friday, October 12, 2007

Formatting XML in vim

":silent 1,$!xmllint --format --recover - 2>/dev/null"

http://www.vim.org/tips/tip.php?tip_id=349

Updated vim tips URL : 

http://vim.wikia.com/wiki/Format_your_xml_document_using_xmllint

1 comment:

Anonymous said...

Thanks for this. The new link to this info on the vim wiki is http://vim.wikia.com/wiki/Format_your_xml_document_using_xmllint