diff --git a/vim/vimrc.d/base.vim b/vim/vimrc.d/base.vim index 34e1a7b..1871074 100644 --- a/vim/vimrc.d/base.vim +++ b/vim/vimrc.d/base.vim @@ -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())"