Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjoernricks/vim-autopep8
Autopep8 Vim Script
https://github.com/bjoernricks/vim-autopep8
Last synced: about 1 month ago
JSON representation
Autopep8 Vim Script
- Host: GitHub
- URL: https://github.com/bjoernricks/vim-autopep8
- Owner: bjoernricks
- Created: 2014-02-18T10:22:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-31T13:37:53.000Z (over 10 years ago)
- Last Synced: 2023-03-12T04:06:49.138Z (over 1 year ago)
- Language: VimL
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
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... _autopep8: https://github.com/hhatto/autopep8/
.. _PEP 8: http://www.python.org/dev/peps/pep-0008/In difference to the vim vim-autopep8_ it doesn't require to install the
autopep8 python script in $PATH... _vim-autopep8: https://github.com/tell-k/vim-autopep8
Installation
------------Please use pathogen_ to install vim-autopep8 as a bundle::
cd ~/.vim/bundle
git clone https://github.com/bjoernricks/vim-autopep8.git.. _pathogen: https://github.com/tpope/vim-pathogen
Either install autopep8_ via pip::
pip install autopep8
or run::
cd ~/.vim/bundle/vim-autopep8.git
git submodule update --initUsage
-----Open a python file and press `` to format the complete buffer. Also you can
select a piece of code in visual mode and press `` to only reformat the
selection.