2012-10-09 19:04:23 -04:00
|
|
|
let s:bundleDir = fnamemodify(expand("<sfile>"), ":h:h:h")
|
2012-12-01 08:06:28 -05:00
|
|
|
let s:prgpath = s:bundleDir."/js-beautify/python/js-beautify"
|
|
|
|
let s:arguments = "-i"
|
2012-12-01 12:53:11 -05:00
|
|
|
|
2012-12-01 08:06:28 -05:00
|
|
|
if executable(s:prgpath)
|
|
|
|
let &formatprg=s:prgpath." ".s:arguments
|
2012-12-02 14:50:10 -05:00
|
|
|
else
|
|
|
|
call g:FindFormatter("js-beautify",s:arguments)
|
2012-12-01 08:06:28 -05:00
|
|
|
endif
|
2012-10-09 19:04:23 -04:00
|
|
|
|
|
|
|
set expandtab
|
2012-12-01 12:53:11 -05:00
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|