When using vim (or any other text editor) for python scripts, is there a way to run a section of your script alone?
Matlab has a feature where beginning a line with %%
splits the lines of code that follow into a section of its own, that can be run independently. Is there a way of achieving this without having to use iPython? Even if the solution is a bit hacky, it would be an improvement over what I currently am doing, which is commenting out blocks that I don't want to run.