How to automatically validate XML files in vim?
This line in ~/.vimrc will automatically start xmllint on any XML file when you save it:
autocmd BufWritePost *xml !xmllint --noout %
This line in ~/.vimrc will automatically start xmllint on any XML file when you save it:
autocmd BufWritePost *xml !xmllint --noout %
Powered by WordPress