I am using vim to compile my code using the command
:w | !make.
If this output produces a lot of compiler errors (not uncommon lol), then I'd like to scroll to the top of the output, where the command was executed, so that I can handle the first error first.
My terminal has a 'scroll to last command' feature, but of course the last actual command that the terminal is aware of is
>vim ..., so this feature doesn't take me to the top of the last command executed from vim - it takes me to the the top of all the output from vim since i started the session.
Is there a way to scroll my terminal to the last external command? I'm imagining something like
w | !make | <scroll-to-last-command>.