Close, but you have to use single quotes instead of usingdouble quotes, because Vim interprets "
as a comment in this context:
autocmd FileType javascript setlocal equalprg='js-beautify -f -'
Or just escape the spaces:
autocmd FileType javascript setlocal equalprg=js-beautify\ -f\ -
Close, but instead of using quotes, escape the spaces:
autocmd FileType javascript setlocal equalprg=js-beautify\ -f\ -
Close, but you have to use single quotes instead of double quotes, because Vim interprets "
as a comment in this context:
autocmd FileType javascript setlocal equalprg='js-beautify -f -'
Or just escape the spaces:
autocmd FileType javascript setlocal equalprg=js-beautify\ -f\ -