Skip to content

Instantly share code, notes, and snippets.

@localstatic
Created July 1, 2013 22:19
Show Gist options
  • Save localstatic/5905137 to your computer and use it in GitHub Desktop.
Save localstatic/5905137 to your computer and use it in GitHub Desktop.
Vim - format XML using xmllint as filter. This assumes that xmllint is installed and in your PATH.
:silent 1,$!xmllint --format --recover - 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment