X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vim%2Fftplugin%2Fpython.vim;h=3037539de83f862a1572db3beaadb127c498e4b3;hb=HEAD;hp=95333e6f57c50e17a8768bff14d08f1cdc99be45;hpb=3096274104377e1d4db7a2d8394fa03d7aa69495;p=dotfiles.git diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 95333e6..3037539 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -17,9 +17,8 @@ if has("iconv") && !exists('b:encoding_set') 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") @@ -44,3 +43,6 @@ function! SavePython() endif endif endfunction + +" Avoid double indent. See https://stackoverflow.com/a/62348570/7976758 +let g:pyindent_open_paren=shiftwidth()