From d550205295183fbf7993397a23482fc5a274b612 Mon Sep 17 00:00:00 2001 From: ryunix Date: Sun, 17 Apr 2016 00:13:45 +0900 Subject: [PATCH] Using shiftwidth() --- autoload/emmet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/emmet.vim b/autoload/emmet.vim index fe1913c..3c0ec0d 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -49,7 +49,7 @@ function! emmet#getIndentation(...) abort elseif has_key(s:emmet_settings.variables, 'indentation') let indent = s:emmet_settings.variables.indentation else - let indent = (&l:expandtab || &l:tabstop !=# &l:shiftwidth) ? repeat(' ', &l:shiftwidth) : "\t" + let indent = (&l:expandtab || &l:tabstop !=# shiftwidth()) ? repeat(' ', shiftwidth()) : "\t" endif return indent endfunction