summaryrefslogtreecommitdiffstats
path: root/indent/fortran.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/fortran.vim')
-rw-r--r--indent/fortran.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/fortran.vim b/indent/fortran.vim
index cb00f26d..7aac6b5b 100644
--- a/indent/fortran.vim
+++ b/indent/fortran.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/fortran.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('fortran', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fortran') == -1
" Vim indent file
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
@@ -226,5 +221,3 @@ let &cpoptions=s:cposet
unlet s:cposet
" vim:sw=2 tw=130
-
-endif