]> git.phdru.name Git - dotfiles.git/commitdiff
.vim: Feat(ftplugin/python): Avoid double indent
authorOleg Broytman <phd@phdru.name>
Mon, 28 Mar 2022 12:25:19 +0000 (15:25 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 28 Mar 2022 12:25:19 +0000 (15:25 +0300)
.vim/ftplugin/python.vim

index 95333e6f57c50e17a8768bff14d08f1cdc99be45..dcbdfb28cbefb72d49bc98678cc68b5858b5ac4d 100644 (file)
@@ -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()