From: Oleg Broytman Date: Mon, 28 Mar 2022 12:25:19 +0000 (+0300) Subject: .vim: Feat(ftplugin/python): Avoid double indent X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=2135c9f131657642e506006bcc5e4d1e8582233a .vim: Feat(ftplugin/python): Avoid double indent --- diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 95333e6..dcbdfb2 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -44,3 +44,6 @@ function! SavePython() endif endif endfunction + +" Avoid double indent. See https://stackoverflow.com/a/62348570/7976758 +let g:pyindent_open_paren=shiftwidth()