I'm trying to write a plugin that runs a few shell commands. I want the user to be able to see the output of the commands, but if it takes up more than a screenful, there doesn't seem to be any way to see the part that goes off screen. I looked for a way to make Vim use the more-prompt for the output of shell commands but found none. Is there a way?
Failing that, I tried to hack up a solution where I could grab the output myself and then :echo it so that the more-prompt would be used, but it only displayed the output after the command had completely finished, which isn't very good because the commands take some time to run. Anyone know of a solution for this seemingly simple thing?