defaults: use tabs with javascript if noexpandtab is set

This commit is contained in:
Raine Virta 2013-12-24 00:54:41 +02:00
parent 66995c00d1
commit 1dab5c1a04

View File

@ -40,6 +40,5 @@ endif
if !exists("g:formatprg_javascript") | let g:formatprg_javascript = "js-beautify" | endif
if !exists("g:formatprg_args_expr_javascript") && !exists("g:formatprg_args_javascript")
let g:formatprg_args_expr_javascript = '"-f - -s".&shiftwidth'
let g:formatprg_args_expr_javascript = '"-f - -".(&expandtab ? "" : "t")."s ".&shiftwidth'
endif