vim-autoformat/ftplugin/xml.vim
2013-02-09 16:27:20 +01:00

18 lines
530 B
VimL

if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
"Set the formatter name and arguments for this filetype
let s:prgname = "tidy"
let s:arguments = "-q -xml --show-errors 10 --show-warnings 10 --indent auto --indent-spaces 2 --vertical-space yes --tidy-mark no --wrap 68"
"Set the formatprg option, if the formatter is installed
"globally or in the formatters/ folder
call g:FindFormatter(s:prgname, s:arguments)
"Set indenting behaviour to match with the formatter
set expandtab
set tabstop=2
set shiftwidth=2