[vim] automatically format xml when opened

This commit is contained in:
Nick Nisi
2014-11-27 10:59:52 -06:00
parent ce624861ad
commit e1b7d8b5fe

View File

@@ -54,6 +54,7 @@ if has('autocmd') && !exists('autocommands_loaded')
autocmd FileType jade setlocal ts=2 sts=2 sw=2 noexpandtab
autocmd FileType *.md.js :call SyntasticReset<cr>
autocmd FileType markdown,textile setlocal textwidth=0 wrapmargin=0 wrap spell
autocmd FileType xml exe ":silent %!xmllint --format --recover - 2>/dev/null"
"autocmd WinEnter * setlocal cursorline
"autocmd WinLeave * setlocal nocursorline