Vim + Python development environment setting memo

Install package

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

NeoBundle preparation

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

PyFlake settings

"Automatically checked when saving
let g:PyFlakeOnWrite = 1
let g:PyFlakeCheckers = 'pep8,mccabe,pyflakes'
let g:PyFlakeDefaultComplexity=10

syntastic settings

let g:syntastic_python_checkers = ['pyflakes', 'pep8']

Confirmation of jedi

:h jedi

OK when help comes out with

Recommended Posts

Vim + Python development environment setting memo
[MEMO] [Development environment construction] Python
Emacs Python development environment construction memo
My python environment memo
python2.7 development environment construction
Development environment in Python
[Memo] Django development environment
Django development environment construction memo
Organize your Python development environment
[ev3dev × Python] Build ev3dev development environment
Ubuntu18.04 Development environment creation memo
[For organizing] Python development environment
[MEMO] [Development environment construction] wine
Development environment load measurement memo
python memo (for myself): About the development environment virtualenv
Python environment construction memo on Windows 10
Prepare Python development environment on Ubuntu
Python memo
python memo
[Personal memo] Python virtual environment command memo
Python memo
Python environment construction memo on Mac
[Python3] Development environment construction << Windows edition >>
GitHub x Python development preparation memo
Python development environment options for May 2020
Python colorama Color memo (Cmder environment)
Emacs settings for Python development environment
Python memo
Install Python development environment on Windows 10
Checking the NAOqi Python development environment
Ubuntu Desktop 20.04 development environment construction memo
Prepare Python development environment with Atom
Python memo
Python memo
Python development environment for macOS using venv 2016
[Development environment] Python with Xcode [With screen transition]
Blender 2.82 or later + python development environment notes
How to prepare Python development environment [Mac]
Python3 + venv + VSCode + macOS development environment construction
Mac OS X development environment construction memo
Build Python development environment (pythonz, virtualenv, direnv)
The strongest Python development environment PyCharm's recommendation
Building a Python development environment for AI development
Windows + gVim + Poetry python development environment construction
The strongest Python integrated development environment PyCharm
Free Python runtime environment Google Colaboratory memo
[Python] Memo dictionary
python beginner memo (9.2-10)
Python environment construction
python environment settings
python beginner memo (9.1)
python windows environment
Environment construction (python)
★ Memo ★ Python Iroha
python environment construction
[Python] EDA memo
Python 3 operator memo
Python --Environment construction
Python environment construction
[My memo] python
Python3 metaclass memo