sponsor Vim development Vim logo Vim Book Ad

pep8 : Vim filetype plugin for running PEP8 on Python files

 script karma  Rating 33/16, Downloaded by 1840  Comments, bugs, improvements  Vim wiki

created by
Vincent Driessen
 
script type
ftplugin
 
description
Usage
-----
1. Open a Python file
2. Press `<F6>` to run `pep8` on it

It shows the errors inside a quickfix window, which will allow your to quickly
jump to the error locations by simply pressing [Enter].

Customization
-------------
If you don't want to use the `<F6>` key for PEP8-checking, simply remap it to
another key.  It autodetects whether it has been remapped and won't register
the `<F6>` key if so.  For example, to remap it to `<F3>` instead, use:

    autocmd FileType python map <buffer> <F3> :call Pep8()<CR>
 
install details
Installation
------------
1. Install pep8 (http://pypi.python.org/pypi/pep8)
2. Copy the file `ftplugin/python_pep8.vim` to your `~/.vim/ftplugin` directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
python_pep8.vim 1.1 2010-07-23 6.0 Vincent Driessen Doesn't redeclare the function if it is already defined. This avoids an error message when loading another Python file in the same buffer.

Also, jumps to the right column position for errors.
python_pep8.vim 1.0 2010-07-21 6.0 Vincent Driessen Initial upload
ip used for rating: 3.145.93.210

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github