mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
Django plugin for pylint, saves a lot of chatter
This commit is contained in:
6
.vimrc
6
.vimrc
@@ -51,7 +51,7 @@ let g:ctrlp_switch_buffer = 0
|
|||||||
" Python autocompletion
|
" Python autocompletion
|
||||||
Plugin 'davidhalter/jedi-vim'
|
Plugin 'davidhalter/jedi-vim'
|
||||||
" Code checker. For python, install flake8 or pylint, preferably in the
|
" Code checker. For python, install flake8 or pylint, preferably in the
|
||||||
" virtualenv
|
" virtualenv. For Django support, install pylint-django
|
||||||
Plugin 'scrooloose/syntastic'
|
Plugin 'scrooloose/syntastic'
|
||||||
set statusline+=%#warningmsg#
|
set statusline+=%#warningmsg#
|
||||||
set statusline+=%{SyntasticStatuslineFlag()}
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
@@ -62,8 +62,8 @@ let g:syntastic_auto_loc_list = 1
|
|||||||
let g:syntastic_check_on_open = 1
|
let g:syntastic_check_on_open = 1
|
||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = 0
|
||||||
|
|
||||||
" No silly 80-char line limit. Sorry pep-8.
|
" No silly 80-char line limit. Sorry pep-8. Also, Django support.
|
||||||
let g:syntastic_python_pylint_post_args="--max-line-length=120"
|
let g:syntastic_python_pylint_post_args="--max-line-length=120 --load-plugins pylint_django"
|
||||||
" Handy Markdown stuff
|
" Handy Markdown stuff
|
||||||
Plugin 'tpope/vim-markdown'
|
Plugin 'tpope/vim-markdown'
|
||||||
if v:version >= 704
|
if v:version >= 704
|
||||||
|
|||||||
Reference in New Issue
Block a user