Autoindent with = for python

This commit is contained in:
Mathieu Maret 2016-03-02 17:27:17 +01:00
parent 6ef1691e56
commit c393536bd6

2
.vimrc
View File

@ -138,6 +138,8 @@ if has("autocmd")
autocmd BufRead,BufNewFile *.py set softtabstop=4 autocmd BufRead,BufNewFile *.py set softtabstop=4
autocmd BufRead,BufNewFile *.py set modeline autocmd BufRead,BufNewFile *.py set modeline
autocmd BufRead,BufNewFile *.py set ft=python autocmd BufRead,BufNewFile *.py set ft=python
" Indentation with = for python need autopep8
autocmd BufRead,BufNewFile *.py set equalprg=autopep8\ -
endif endif
if has("autocmd") if has("autocmd")