diff options
Diffstat (limited to 'ftplugin/jsp.vim')
-rw-r--r-- | ftplugin/jsp.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ftplugin/jsp.vim b/ftplugin/jsp.vim index c5eb1ae7..9e186dc5 100644 --- a/ftplugin/jsp.vim +++ b/ftplugin/jsp.vim @@ -1,4 +1,6 @@ -let files = filter(globpath(&rtp, 'ftplugin/jsp.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" }) +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/jsp.vim', 1, 1), Filter) if len(files) > 0 exec 'source ' . files[0] finish |