Execute selection from script in Vim : <p>I'm trying to incorporate vim into my main workflow. A major sticking point for me has been interactively editing and running programs/scripts.</p>

<p>For example given that I'm currently vimmed into test.py</p>

<pre><code>print('hello')
x = 5
y = x+2
print(y)
</code></pre>

<p>Without leaving vim how would I:<br>
a) run the whole script without leaving vim<br>
b) run just "print('hello')"</p>
