title: PEP 8 compliant code in Vim
body: <p>Is there a good way to setup Vim to handle <a href="https://www.python.org/dev/peps/pep-0008/" rel="nofollow">PEP 8</a> compliance?</p>
  
  <p>I've tried a couple vim plugins, pep8, and flake8.  These are good at identifying errors, but they don't "auto-correct" you as you type.  I don't want to worry about manually handling proper spacing.</p>
  
  <p>In particular, the 79 character line limit.  I can set textwidth=79, but that doesn't intelligently identify where to break lines.  For example, this will incorrectly over/under indent the new line, causing pep8/flake8 to complain, and it will split in places that is syntactically incorrect (for example, on a %), and cause the code not to run.</p>
  
  <p>Does anyone have a solution that works well for them?</p>