summaryrefslogtreecommitdiffstats
path: root/indent/cdl.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/cdl.vim')
-rw-r--r--indent/cdl.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/cdl.vim b/indent/cdl.vim
index 3f69f349..e52b8082 100644
--- a/indent/cdl.vim
+++ b/indent/cdl.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, 'indent/cdl.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('cdl', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cdl') == -1
" Description: Comshare Dimension Definition Language (CDL)
" Author: Raul Segura Acevedo <raulseguraaceved@netscape.net>
@@ -136,5 +131,3 @@ fun! CdlGetIndent(lnum)
return ind
endfun
-
-endif