Browse Source

Add xml formatter in vimrc

ubuntu_ci
Ein Verne 4 years ago
parent
commit
2747d85c53
  1. 6
      .vimrc

6
.vimrc

@ -338,5 +338,7 @@ endif
" source $VIMRUNTIME/vimrc_example.vim " source $VIMRUNTIME/vimrc_example.vim
" source $VIMRUNTIME/mswin.vim " source $VIMRUNTIME/mswin.vim
"
" use FormatXML or `=` to format xml need python3 installed
com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"
nnoremap = :FormatXML<Cr>

Loading…
Cancel
Save