endif
endif
-setlocal formatoptions-=t formatoptions+=croql
+runtime! ftplugin/programming_lang.vim
setlocal keywordprg=pydoc
-setlocal shiftwidth=4 softtabstop=4
compiler python
if has("unix")
let ext = expand("%:e")
if ext == "pyem"
return
- elif ext == "ptl"
+ elseif ext == "ptl"
!compyle-ptl %
else
!compyle %
endif
endif
endfunction
+
+" Avoid double indent. See https://stackoverflow.com/a/62348570/7976758
+let g:pyindent_open_paren=shiftwidth()