From e1b7d8b5feae902fe3b04b9ef3fb74433db59409 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Thu, 27 Nov 2014 10:59:52 -0600 Subject: [PATCH] [vim] automatically format xml when opened --- vim/vimrc.symlink | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index 88e8a37..d5e76d4 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -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 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