Vimjas / vim-python-pep8-indent

A nicer Python indentation style for vim.
Creative Commons Zero v1.0 Universal
790 stars 69 forks source link

Does anyone can tell me how to use this to format the code? #43

Closed ghost closed 9 years ago

ghost commented 9 years ago

I've installed vim-pthon-pep8-indent with bundle,

I've ran :pep8 in VIM but got nothing.

how to use it? thanks.

blueyed commented 9 years ago

It will/should be used for indenting automatically, by setting up indentexpr (see Vim's help on that).

Make sure to add/have the following in your vimrc, which should be there already, when using plugins:

filetype plugin indent on

:pep8 should result in an error, doesn't it?

ghost commented 9 years ago

Thank you for your reply, I should try these.

blueyed commented 9 years ago

If you feel that the documentation could be improved (I think so), please consider providing a PR for it.