title: Running python code directly in Vim
body: <p>I want to run a python program directly in vim. I type </p>
  
  <pre><code>:w !python 
  </code></pre>
  
  <p>I get error </p>
  
  <blockquote>
    <p>'no module named...' or 'no such file or directory: 'file.json''.</p>
  </blockquote>
  
  <p>It occurs only when I load file after opening vim. When I start vim typing <code>gvim filename.py</code>, it works fine (<code>:w !python</code> works). What is wrong here?</p>