title: how to use pythontidy in vim
body: <p>what I am using now is ,</p>
  
  <pre><code>autocmd BufWritePost *.py !python PythonTidy.py % %
  </code></pre>
  
  <p>It really call the tidy programe and change the file, but the vim does not reload the new file.</p>
  
  <p>And I do not want to install another plugin for it.</p>
  
  <p>=======================
  note: I found it's dangerous about this feature, PythonTidy will will output a empty file if the command faild, it means if you have syntax error, you will lose your file unless press "u" to get it,but you can't save before you fix syntax error.</p>
  
  <p>I call :!PythonTidy % % manually after pylint complete now.</p>