Scrolling inside Vim in Mac's Terminal

hora picture hora · Nov 13, 2009 · Viewed 47.4k times · Source

I've been googling around trying to figure out if it's possible to use my mouse wheel to scroll while inside Vim in Mac's Terminal, with no luck. It seems as if only X11 or iTerm support this.

Before I give up, I thought I'd try the geniuses here to see if anyone knows a way to do this. So, does anyone know if I can set that up?

Or should I seriously consider using a different terminal application?

Answer

Shane Reustle picture Shane Reustle · Aug 22, 2012

And if you're using iTerm, add this to your vimrc

:set mouse=a