Quickly tidy XML in vim on Linux

If you find yourself staring at an ugly representation of an XML doc, use the following command to tidy it up using xmllint:

$!xmllint --format --recover - 2>/dev/null

Filed under  //  linux   vim   xml  
Posted