Suppose I have several lines of python code:
for i in range(10):
print "item {}".format(i)
is there a way I can get the output of the lines directly in vim without having to copy the text into the interpreter and copy the output back?
The lines are usually just a part of the file, not the hole file.