Format xml document in vi command Posted on May 20, 2022May 23, 2022 by Viet Luu #make sure xmllint install first #sudo apt -y install libxml2-utils :%!xmllint --format % Tweet