A vim plugin that uses autopep8 to format your (selected) python code in a vim buffer to conform to the PEP 8 style guide.
In difference to the vim vim-autopep8 it doesn't require to install the autopep8 python script in $PATH.
Please use pathogen to install vim-autopep8 as a bundle:
cd ~/.vim/bundle git clone https://github.com/bjoernricks/vim-autopep8.git
Either install autopep8 via pip:
pip install autopep8
or run:
cd ~/.vim/bundle/vim-autopep8.git git submodule update --init
Open a python file and press <F9> to format the complete buffer. Also you can select a piece of code in visual mode and press <F9> to only reformat the selection.