diff --git a/indent/vue.vim b/indent/vue.vim index 0e2b53d..e68e8bf 100644 --- a/indent/vue.vim +++ b/indent/vue.vim @@ -250,8 +250,9 @@ function! VimVuePluginIndentMain(...) call s:SetVueIndent() endfunction -if exists('*timer_start') && !exists('SessionLoad') && !s:test - call timer_start(50, 'VimVuePluginIndentMain') +let s:timer = exists('*timer_start') && !exists('SessionLoad') && !s:test +if s:timer + call timer_start(200, 'VimVuePluginIndentMain') else call VimVuePluginIndentMain() endif diff --git a/syntax/vue.vim b/syntax/vue.vim index 8cc0d74..85c49e6 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -174,7 +174,8 @@ function! VimVuePluginSyntaxMain(...) call s:HighlightVueTag() endfunction -if exists('*timer_start') && !exists('SessionLoad') && !s:test +let s:timer = exists('*timer_start') && !exists('SessionLoad') && !s:test +if s:timer call timer_start(1, 'VimVuePluginSyntaxMain') else call VimVuePluginSyntaxMain()