Scrolling inside Vim in Mac's Terminal

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

:set mouse=a

http://bitheap.org/mouseterm/

Use MouseTerm (and do make sure to install SIMBL first!) and scrolling will work like a charm, even remote, using Mac Terminal.

You need to fully quit the Terminal application (Command+Q) and then launch it again after installing MouseTerm.


This is an old question, but a top hit on google, so I feel compelled to provide an updated answer.

Running OSX El Capitan 10.11, vim mouse and trackpad scrolling just worked(TM) for me in Terminal.app by default. However occasionally the mouse/trackpad input stopped manipulating the vim buffer, and started scrolling the terminal buffer. The answer was Command+R or Menu View --> Allow Mouse Reporting. Turning that on allowed the mouse/trackpad scroll operations to move the cursor in vim.