A terminal emulator is provided to scroll through the vim terminal (or a terminal multiplexer, for example, tmux / screen, if you use it). That is, if your terminal scrolls when using <S-PageUp> , it should also scroll using Vims ! . The same goes for the mouse wheel (it works for me, even if vim was configured to control the mouse independently).
If there is a vim terminal and you need to view the output after pressing <CR> , you can use <Cz> / :susp . Both of these features will be corrupted by the incorrect configuration of either vim or the terminal (terminal multiplexer) (i.e., the terminal is configured not to support alternative screens (which usually occurs for terminal multiplexers, not terminal emulators: screen requires altscreen on in .screenrc ) or vim, installing vim, what to output to the terminal when starting / resuming and shutting down / pausing was ruined).
If you have a vim GUI, your options are very limited. It is better to follow the link provided by @glts or @EricAndres advice in this case, since I am not using the vim GUI.
source share