From 6613c6917dc17f75468543c96c482bc5ebfbcff3 Mon Sep 17 00:00:00 2001 From: Chiel92 Date: Sun, 20 Jan 2013 18:18:31 +0100 Subject: [PATCH] html support added by `tidy` --- ftplugin/html.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ftplugin/html.vim b/ftplugin/html.vim index becbd91..881e40b 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -3,6 +3,15 @@ if exists("b:did_ftplugin") endif let b:did_ftplugin = 1 +"Set the formatter name and arguments for this filetype +let s:prgname = "tidy" +let s:arguments = "-q --show-errors 0 --show-warnings 0 --indent auto --indent-spaces 2 --vertical-space yes --tidy-mark no" + +"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