diff options
Diffstat (limited to 'indent/python.vim')
-rw-r--r-- | indent/python.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/python.vim b/indent/python.vim index 8e2ea0d7..5f13b77e 100644 --- a/indent/python.vim +++ b/indent/python.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/python.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('python-indent', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-indent') == -1 " PEP8 compatible Python indent file " Language: Python @@ -461,5 +456,3 @@ function! GetPythonPEPIndent(lnum) return s:indent_like_previous_line(a:lnum) endfunction - -endif |