--- /dev/null
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+" Pretty format the XML content by passing it through xmllint.
+function XML_reformat()
+ exec "%!xmllint --format -"
+endfunction
" Some preferences for indent detection
let g:detectindent_min_indent = 2
+let g:detectindent_max_indent = 4
let g:detectindent_preferred_indent = 4
" Attention: Must be run after plugsetup.vim
let g:detectspelllang_langs = {}
let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT']
-"au BufReadPost * :DetectIndent
+au BufReadPost *.java :DetectIndent
au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.'
au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.'