diff options
Diffstat (limited to 'syntax/velocity.vim')
-rw-r--r-- | syntax/velocity.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/velocity.vim b/syntax/velocity.vim index 65f37fd9..dffcd394 100644 --- a/syntax/velocity.vim +++ b/syntax/velocity.vim @@ -1,11 +1,6 @@ -let s:base = expand("<sfile>:h:h") -let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" } -let files = filter(globpath(&rtp, 'syntax/velocity.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('velocity', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'velocity') == -1 " Vim syntax file " Language: Velocity HTML template @@ -74,5 +69,3 @@ if version >= 508 || !exists("did_velocity_syn_inits") endif let b:current_syntax = "velocity" - -endif |