Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX: Environment variables pointing to application bundles?

I want cscope to open files in MacVim instead of vim, so I'm trying to have the path to MacVim as the Value of the EDITOR environment variable which is used by cscope:

$ export EDITOR=/Applications/MacVim.app/Contents/MacOS/MacVim

If I'm now trying to edit a file from within ctags, it won't work and throws this error message:

$ MacVim[8384:10b] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting

Calling MacVim from the commandline with

$ /Applications/MacVim.app/Contents/MacOS/MacVim

works, though.

How can I fix this?

like image 438
Benjamin Buch Avatar asked Jan 09 '09 11:01

Benjamin Buch


1 Answers

Make sure you put the mvim script in your path, and try this out:

export EDITOR="mvim -f"

This was the ticket for me when using MacVim as editing git commit messages.

like image 187
Jim Garvin Avatar answered Sep 28 '22 11:09

Jim Garvin