diff options
Diffstat (limited to 'ftplugin/spec.vim')
-rw-r--r-- | ftplugin/spec.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/spec.vim b/ftplugin/spec.vim index 772e218a..a7b9f9cd 100644 --- a/ftplugin/spec.vim +++ b/ftplugin/spec.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/spec.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('spec', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'spec') == -1 " Plugin to update the %changelog section of RPM spec files " Filename: spec.vim @@ -215,5 +210,3 @@ let &cpo = s:cpo_save unlet s:cpo_save let b:undo_ftplugin = "unlet! b:match_ignorecase b:match_words" - -endif |