From f591da8f5ee1586834fd1828db977f61d4da81a7 Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Fri, 20 Sep 2019 16:34:48 +0800 Subject: [PATCH] Indent correctly with template string --- ftplugin/vue.vim | 5 +++++ 1 file changed, 5 insertions(+) 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'