From b79d39925f63f5e37020ad1714fbb2f4d71a60f1 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 24 Jan 2015 20:45:33 +0100 Subject: [PATCH] Syntastic. Because fantastic --- .vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.vimrc b/.vimrc index 6f1c8b5..f1baa34 100644 --- a/.vimrc +++ b/.vimrc @@ -50,6 +50,20 @@ let g:ctrlp_switch_buffer = 0 " Python autocompletion Plugin 'davidhalter/jedi-vim' +" Code checker. For python, install flake8 or pylint, preferably in the +" virtualenv +Plugin 'scrooloose/syntastic' +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 + +" No silly 80-char line limit. Sorry pep-8. +let g:syntastic_python_pylint_post_args="--max-line-length=120" " Handy Markdown stuff Plugin 'tpope/vim-markdown' if v:version >= 704