From aa1cefc78ed8186efb64038dbfb6246295ce9f57 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 3 Nov 2017 14:05:08 +0100 Subject: [PATCH] Python import fixer, quickly open info pane --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index ec3cc3b..32c4d92 100644 --- a/.vimrc +++ b/.vimrc @@ -190,7 +190,12 @@ let g:syntastic_python_pylint_post_args="--max-line-length=120 -d C0103,C0111" " Code checker. For python, install flake8 or pylint, preferably in the " virtualenv. For Django support, install pylint-django Plugin 'w0rp/ale' +nmap = (ale_fix) +" Quickly open the loclist to see syntax errors +nmap ; :lopen +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 -d C0103,C0111" " Show errors or warnings in the statusline