astyle support added (for cs, c, cpp, java)

gitignore file added
This commit is contained in:
Chiel92 2012-12-02 20:50:10 +01:00
parent 189f309f8e
commit e89907686d
4 changed files with 2 additions and 16 deletions

Binary file not shown.

View File

@ -1,8 +0,0 @@
let &formatexpr="CSSBeautify()"
let s:bundleDir = fnamemodify(expand("<sfile>"), ":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

View File

@ -1,8 +0,0 @@
let &formatexpr="HtmlBeautify()"
let s:bundleDir = fnamemodify(expand("<sfile>"), ":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

View File

@ -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