diff --git a/formatters/phpCB b/formatters/phpCB deleted file mode 100755 index 55cd2b9..0000000 Binary files a/formatters/phpCB and /dev/null differ diff --git a/ftplugin/css.vim b/ftplugin/css.vim deleted file mode 100644 index db437f1..0000000 --- a/ftplugin/css.vim +++ /dev/null @@ -1,8 +0,0 @@ -let &formatexpr="CSSBeautify()" -let s:bundleDir = fnamemodify(expand(""), ":h:h:h") -let g:cssbeautify_file = fnameescape(s:bundleDir."/js-beautify/beautify-css.js") - -let g:cssbeautify = {'indent_size': 4, 'indent_char': ' '} -set expandtab -set tabstop=4 -set shiftwidth=4 diff --git a/ftplugin/html.vim b/ftplugin/html.vim deleted file mode 100644 index ab60bfd..0000000 --- a/ftplugin/html.vim +++ /dev/null @@ -1,8 +0,0 @@ -let &formatexpr="HtmlBeautify()" -let s:bundleDir = fnamemodify(expand(""), ":h:h:h") -let g:htmlbeautify_file = fnameescape(s:bundleDir."/js-beautify/beautify-html.js") - -let g:htmlbeautify = {'indent_size': 2, 'indent_char': ' ', 'max_char': 78, 'brace_style': 'expand', 'unformatted': ['a', 'sub', 'sup', 'b', 'i', 'u']} -set expandtab -set tabstop=2 -set shiftwidth=2 diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim index f54b267..e869070 100644 --- a/ftplugin/javascript.vim +++ b/ftplugin/javascript.vim @@ -4,6 +4,8 @@ let s:arguments = "-i" if executable(s:prgpath) let &formatprg=s:prgpath." ".s:arguments +else + call g:FindFormatter("js-beautify",s:arguments) endif set expandtab