diff options
Diffstat (limited to 'runtime/ftplugin/python.vim')
| -rw-r--r-- | runtime/ftplugin/python.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/ftplugin/python.vim b/runtime/ftplugin/python.vim index 6f20468896..50d86537d9 100644 --- a/runtime/ftplugin/python.vim +++ b/runtime/ftplugin/python.vim @@ -6,6 +6,7 @@ " Repository: https://github.com/tpict/vim-ftplugin-python " Last Change: 2024/05/13 " 2024 Nov 30 use pytest compiler (#16130) +" 2026 Jun 27 by Vim Project (normalize recommended style guard) if exists("b:did_ftplugin") | finish | endif let b:did_ftplugin = 1 @@ -119,7 +120,8 @@ if has("browsefilter") && !exists("b:browsefilter") endif endif -if !exists("g:python_recommended_style") || g:python_recommended_style != 0 +if get(g:, 'python_recommended_style', + \ get(g:, 'filetype_recommended_style', 1)) " As suggested by PEP8. setlocal expandtab tabstop=4 softtabstop=4 shiftwidth=4 endif |