search

Home  >  Q&A  >  body text

macos - Can't scroll using the touch screen when opening a file with iTerm2 on mac?

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?

伊谢尔伦伊谢尔伦2774 days ago801

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-16 16:36:00

    After searching for a long time, I finally found the solution
    ~Add the following line to/.vimrc

    set mouse=a

    reply
    0
  • Cancelreply