Added Formatting command for JSON & XML

This requires python3 to be installed along with standard set of
modules.
This commit is contained in:
James Patrick 2021-04-10 16:39:41 -04:00
parent 2035eec6b7
commit 9cd50287b8

View File

@ -67,3 +67,6 @@ function! NumberToggle()
endif
endfunc
""
com! FormatJson :%!python3 -m json.tool
com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"