[vim] automatically format xml when opened
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user