The Terminal that comes with Mac uses Vim to open the file. If the file has multiple screens, you can use the touchpad to scroll, which is very convenient for viewing the code.
But I can’t scroll using the touch screen when opening a file using iTerm2. What’s going on?
How to set it up so that I can use the touch screen to scroll under iTerm2?
After searching for a long time, I finally found the solution
~Add the following line to/.vimrc