Scrolling inside Vim in OS X Terminal

I use Vim most of my time for coding. I like to have mouse support (scrolling and clicking) inside Vim in OS X Terminal, just like when I use it inside other applications.

To enable these features, you need MouseTerm. Just make sure to install SIMBL first!

If you get the error when launching an installer “{installer-name} is damaged and can’t be opened. You should eject the disk image.” like below.

MouseTerm Install Error

You can workaround this issue by temporarily changing the System Preferences as follows:

  1. Choose System Preferences from the Apple Menu
  2. Click Security & Privacy
  3. Click the Lock (lower left) and enter your admin password to unlock it
  4. In the General tab, set Allow applications downloaded from to Anywhere

    Allow apps

Now try the installer again.

After the installation you can set it back to Mac App Store and Identified Developers.

To enable the mouse for all modes add the following to your ~/.vimrc file:

if has("mouse")
    set mouse=a
endif

That’s it!