2009/8/9 Bernhard:
>
> I have volunteered to make Cream (http://cream.sf.net/) work with
> MacVim and I've run into a bit of a problem;
> I need to load a custom vimrc file and but no gvimrc file, hence I
> amended the options in the mvim script like this:
> opts='-U NONE -u /Users/vbwx/Desktop/cream/MacVim.app/Contents/
> Resources/vim/runtime/cream/creamrc'
>
> 1) Vim couldn't find the file when I just put "$VIMRUNTIME/cream/
> creamrc" there. What gives?

I don't understand what you mean by "Vim couldn't find the file"?

> 2) Nothing happens when executing the script. MacVim.app loads, but no
> Vim instance is launched. File > New Window creates one but here my
> options (including the -u switch) are ignored!

The options only apply to the Vim instance launched when calling the
mvim script.  When you press Cmd-n a new Vim instance is launched
essentially by calling "Vim -g".  There is no easy way to change this.

> 3) Replacing MacVim.app/Contents/Resources/vim/vimrc with creamrc and
> trashing gvimrc practically works, however it's only a workaround.
> Plus, in this case the application menu (MacVim) appears last (after
> "Help" instead in front of "File"). No idea as to why.

The system gvimrc file changes the menus around for MacVim.  The way
it is set up depends in to a certain extent that the menus are not
altered before the system gvimrc file is sourced.  I think what you
need to do is to rewrite the system gvimrc file to work with the
modified menus that Cream uses.  You'll have to look at the system
gvimrc file to see how this is done and modify it to work with Cream.

I have to warn you that I will most likely change the way the menus
are set up in the future.  In order to be able to support localized
menus I think I'll have to move all of the menu stuff from MacVim's
system gvimrc to the menu.vim file inside the runtime folder.  This
change _may_ also make it easier to make Cream work with MacVim.

Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to