MacVim is not found by Spotlight

I had the same issue. I moved MacVim.app to /Applications and then symlinked into the homebrew cellar directory.

mv /usr/local/Cellar/macvim/7.3-65/MacVim.app /Applications/  
ln -s /Applications/MacVim.app /usr/local/Cellar/macvim/7.3-65/

When you download a file from the Internet OS X marks it as "quarantined". You can see this with a Terminal command like:

 cd "wherever your app folder is" (not in the .app folder itself)
 ls -la@

One of the things you will see is that attribute called "com.apple.quarantine" is set for the MacVim.app folder (and for all files within its tree). If you start the app you will get a warning from OS X like "this app has been downloaded from the internet - do you want to proceed" and when you say yes it will un-quarantine the files in the app. You can do this manually for all files in the MacVim.app folder tree by using the Terminal command:

xattr -dr com.apple.quarantine MacVim.app

Or for just one file with the command:

xattr -d com.apple.quarantine somefile

I downloaded MacVim 7.3 and this would not work until I did the xattr -dr ... command, but as soon as I did, it started working fine from wherever it was installed. Set a file to use MacVim to open it and it also worked (using the "GetInfo" dialog box).

The location of the MacVim app is not really important. It's just that by convention, apps are usually located in the /Applications folder. This might not be true for some apps, but just for the sake of uniformity it probably is a good idea.

Sometimes there might be a reason why this isn't practical, like maybe you don't have write permission to the /Applications folder.


For those with Yosemite and MacVim from homebrew not showing up in Spotlight, using an alias works.

(Be sure to delete any MacVim that is already in /Applications.)

From the Terminal:

  1. Uninstall existing: brew uninstall macvim
  2. Install latest: brew install macvim
  3. Open directory in Finder. Ex: open /usr/local/Cellar/macvim/7.3-64
  4. In Finder, right-click on the MacVim.app icon and select "Make Alias".
  5. Copy the alias you just created to the /Applications folder.

Spotlight will index the MacVim alias.

Source: https://github.com/Homebrew/homebrew/issues/8970#issuecomment-4262695