From f0d8cc2d4000973f6a633a52988aefaedd9912b2 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 22 Feb 2019 09:16:00 +0100 Subject: [PATCH] 20190211: document the Python/Django ftype recognition --- .vim/after/ftplugin/python.vim | 2 ++ .vimrc | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vim/after/ftplugin/python.vim b/.vim/after/ftplugin/python.vim index 0a3fbc0..3add80f 100644 --- a/.vim/after/ftplugin/python.vim +++ b/.vim/after/ftplugin/python.vim @@ -1,3 +1,5 @@ +" Taken from http://code.lardcave.net/2018/09/09/1/ Thanks! +" Fixed for Python3's importlib python3 < 500KB), it can let g:ale_fixers = {} " Python specific settings let g:ale_fixers.python = ['isort'] -" No silly 80-char line limit. Sorry pep-8. Also, Django support. Disable 'invalid name', 'missing docstring' -"let g:ale_python_pylint_options="--max-line-length=120 --disable=invalid-name,missing-docstring" -" VIMHOME/after/ftplugin/python.vim takes care of this + +" See VIMHOME/after/ftplugin/python.vim for some pylint configuration, also checking whether a +" project uses Django + " Show errors or warnings in the statusline let g:airline#extensions#ale#enabled = 1 " UI