From a0f26edbaa7944436308f52dc4e104e93fd60fbf Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Tue, 10 Sep 2019 17:55:49 +0800 Subject: [PATCH] Set a variable indicating vue syntax --- syntax/vue.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/syntax/vue.vim b/syntax/vue.vim index d2e0c9e..2a36d60 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -11,6 +11,8 @@ if exists("b:current_syntax") && b:current_syntax == 'vue' finish endif +" For advanced users, this variable can be used to avoid overload +let b:current_main_syntax = 'vue' """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " " Config {{{ @@ -64,10 +66,6 @@ function! s:SetCurrentSyntax(type) if a:type == 'coffee' syntax cluster coffeeJS contains=@htmlJavaScript let b:current_syntax = 'vue' - elseif a:type == 'less' || a:type == 'sass' - " For advanced user, this variable can be used to avoid overload - let b:current_main_syntax = 'vue' - unlet! b:current_syntax else unlet! b:current_syntax endif