From 1dab5c1a04c59e70903a1688b005083938b57ae3 Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Tue, 24 Dec 2013 00:54:41 +0200 Subject: [PATCH] defaults: use tabs with javascript if noexpandtab is set --- plugin/defaults.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/defaults.vim b/plugin/defaults.vim index dacfbbc..e910bd3 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -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 -