Fixing the MacVim Cursor Bug on MBP Retina

MacBook Pro Retina

Photo by Francis Bourgouin

When we installed MacVim on the new MacBook Pro with Retina display, we noticed that the cursor leaves scrapes behind itself. After a little investigation, we found that someone already fired up a bug in the MacVim issue tracker. Björn Winckler reacted almost immediately and the bug is now fixed. However, you need to install the latest HEAD of the MacVim git repository in order to have a version with the patch.

Homebrew

Homebrew provides really convenient command to install and compile the MacVim master branch.

1
$ brew install macvim --HEAD

As simple as that. You are good to go.

However, if you are not a Homebrew user, you have to compile MacVim manually.

Compiling MacVim

First, you have to clone the git repo:

1
2
$ cd /tmp
$ git clone git://github.com/b4winckler/macvim.git

After that, you have to configure and make the project:

1
2
3
4
5
6
7
$ cd macvim/src/
$ ./configure --with-features=huge \
                  --enable-rubyinterp \
                  --enable-pythoninterp \
                  --enable-perlinterp \
                  --enable-cscope
$ make

Voila!

In order to test if everything works fine, you have to start the application by typing:

1
$ open MacVim/build/Release/MacVim.app

If everything looks good, you can open MacVim/build/Release and drag the MacVim icon into your Applications folder.

Conclusion

Besides fixed cursor bug, you will get the latest state of the MacVim project, including performance improvements, fixed bugs, etc. If you find any problems, do not hesitate to open a new issue in the MacVim issue tracker.

About the author

Veselin Todorov is a software consultant focused on testing, code quality and building awesome products. He is helping companies to ship their products with confidence and style.

If you are passionate about JavaScript, Node.js, TDD, building and growing applications, you should visit his blog at RobustJS.com