It is explained in many places, how to run a python script from vim including Running Python code in Vim.
But my output spans across pages and only I can see the last page. I am not able to move to top of the results.
I tried :!clear;python % | more. This will keep the output in more, but once more is exited, things are same. Any ways to move in the result pane?
Also I not able to add the shortcut "map :w:!python %|more".