diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim index ccf44d2..b3c462c 100644 --- a/ftplugin/vue.vim +++ b/ftplugin/vue.vim @@ -10,3 +10,8 @@ if exists("loaded_matchit") \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' endif + +" Indent correctly with template string for vim-javascript/builtin +" indentexpr +let b:syng_str = '^\%(.*template\)\@!.*string\|special' +let b:syng_strcom = '^\%(.*template\)\@!.*string\|comment\|regex\|special\|doc'