[ADD][VIM] Auto-format Python files on save

This commit is contained in:
Bruno BELANYI 2019-11-19 15:22:20 +01:00
parent 51ef52513e
commit 31174951ff

View file

@ -31,6 +31,10 @@ let b:undo_ftplugin.='|unlet b:ale_python_mypy_ignore_invalid_syntax'
let b:ale_python_mypy_auto_pipenv=1 let b:ale_python_mypy_auto_pipenv=1
let b:undo_ftplugin.='|unlet b:ale_python_mypy_auto_pipenv' let b:undo_ftplugin.='|unlet b:ale_python_mypy_auto_pipenv'
" Automatically format files when saving them
let b:ale_fix_on_save=1
let b:undo_ftplugin='|unlet b:ale_lint_on_save'
" Change max length of a line to 88 for this buffer to match black's settings " Change max length of a line to 88 for this buffer to match black's settings
setlocal colorcolumn=88 setlocal colorcolumn=88
let b:undo_ftplugin.='|setlocal colorcolumn<' let b:undo_ftplugin.='|setlocal colorcolumn<'