bjoernricks / vim-autopep8

Autopep8 Vim Script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-autopep8

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.

Installation

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

Usage

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.

About

Autopep8 Vim Script


Languages

Language:Vim Script 100.0%