summaryrefslogtreecommitdiffstats
path: root/ftplugin/ocaml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/ocaml.vim')
-rw-r--r--ftplugin/ocaml.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim
index c3d952de..d9e56533 100644
--- a/ftplugin/ocaml.vim
+++ b/ftplugin/ocaml.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, 'ftplugin/ocaml.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" Language: OCaml
" Maintainer: David Baelde <firstname.name@ens-lyon.org>
@@ -648,5 +643,3 @@ let &cpoptions=s:cposet
unlet s:cposet
" vim:sw=2 fdm=indent
-
-endif