A useful tool for clean maintenance of Python source code
$ sudo pip install flake8 pyflakes pep8 pylint jedi
$ sudo apt-get install vim-python-jedi
When doing with conda
$ sudo conda install flake8 pyflakes pep8 pylint jedi
Vim plugin management tool
mkdir -p ~/.vim/bundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
Describe NeoBundle settings in vimrc
vi ~/.vimrc
"Bundle directory specification
set runtimepath+=~/.vim/bundle/neobundle.vim/
"Load neobundle
call neobundle#begin(expand('~/.vim/bundle/'))
"Manage neobundle
NeoBundleFetch 'Shougo/neobundle.vim'
" ****Plugin to install****
NeoBundle 'Flake8-vim'
NeoBundle 'davidhalter/jedi-vim'
NeoBundle 'hynek/vim-python-pep8-indent'
NeoBundle 'Townk/vim-autoclose'
NeoBundle 'scrooloose/syntastic'
"close neobundle
call neobundle#end()
"Automatically check to install
NeoBundleCheck
"Automatically checked when saving
let g:PyFlakeOnWrite = 1
let g:PyFlakeCheckers = 'pep8,mccabe,pyflakes'
let g:PyFlakeDefaultComplexity=10
let g:syntastic_python_checkers = ['pyflakes', 'pep8']
:h jedi
OK when help comes out with
Recommended Posts