summaryrefslogtreecommitdiffstats
path: root/syntax/rmd.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/rmd.vim')
-rw-r--r--syntax/rmd.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/rmd.vim b/syntax/rmd.vim
index 555f102a..b3b904f3 100644
--- a/syntax/rmd.vim
+++ b/syntax/rmd.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/rmd.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('rmd', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rmd') == -1
" markdown Text with R statements
" Language: markdown with R code chunks
@@ -125,5 +120,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8 sw=2
-
-endif