vim-autoformat/ftplugin/javascript.vim

12 lines
266 B
VimL
Raw Normal View History

2012-10-10 01:04:23 +02:00
let s:bundleDir = fnamemodify(expand("<sfile>"), ":h:h:h")
let s:prgpath = s:bundleDir."/js-beautify/python/js-beautify"
let s:arguments = "-i"
2012-12-01 18:53:11 +01:00
if executable(s:prgpath)
let &formatprg=s:prgpath." ".s:arguments
endif
2012-10-10 01:04:23 +02:00
set expandtab
2012-12-01 18:53:11 +01:00
set tabstop=4
set shiftwidth=4