OSX: environment variables pointing to application packages?

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

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

If I'm trying to edit a file from ctags right now, it will not work and gives this error message:

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

Call MacVim from the command line using

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

working.

How can i fix this?

+5
source share
4

, mvim script :

export EDITOR = "mvim -f"

MacVim git commit.

+10

EDITOR =/Applications/MacVim.app?

MacVim script, ?

0

, EXPORT git. , ? , EXPORT mvim script, MacVim ?

0

<plug>

launch . Apple open, , . :

% launch -ni com.apple.safari
/Applications/Safari.app

launch Fink MacPorts.

</plug>

0

All Articles