Hi Björn,

Thanks for replying and indeed that is really weird that you have
encountered something completely different.  I will ask around on vim_use
and hopefully a vim expert can clue me in on what is going on.

- Dan

On Sun, Jul 18, 2010 at 4:20 PM, björn <[email protected]> wrote:

> On 18 July 2010 00:49, Dan wrote:
> >
> > I have recently set up MacVim 7.2 snapshot 52 as an external editor
> > with Xcode and I have installed cocoa.vim script from vim.org into my
> > home .vim directory.  Now using vim from the terminal, cocoa.vim works
> > fine and I receive all the cocoa objective-C syntax enhancements when
> > working with objc files.  However, MacVim fails to do the same.
> >
> > After a little a investigation with using the ':scriptnames' command I
> > found the that MacVim would load the following syntax files in this
> > exact order:
> >
> >  30: /Users/Dan/.vim/after/syntax/objc_enhanced.vim
> >  31: /Users/Dan/.vim/after/syntax/cocoa_keywords.vim
> >  32: /Applications/MacVim-snapshot-52/MacVim.app/Contents/Resources/
> > vim/runtime/syntax/objc.vim
> >  33: /Applications/MacVim-snapshot-52/MacVim.app/Contents/Resources/
> > vim/runtime/syntax/c.vim
> >
> > So it appeared that MacVim's internal objc.vim file would clobber the
> > loaded enhancements from "objc_enhanced.vim".  Shouldn't MacVim load
> > the "$HOME/.vim/after/syntax" directory after it loads its own
> > internal syntax files?  I'm not sure if this is an issue worthy to be
> > reported as a bug.
> >
> > As a quick and dirty fix I copied "objc_enchance.vim" and
> > "cocoa_keywords.vim" to MacVim's "runtime/syntax" directory and added
> > "ru syntax/objc_enhanced.vim" to the bottom of the "syntax/objc.vim"
> > file.  I realize that this is probably not the best way to get around
> > the issue but it worked for me.
>
> Hi Dan,
>
> I see the same order of loaded scripts and I can't say I understand
> this issue.  Reading the help I also get the impression the
> ~/.vim/after folder should be sourced last.  However, I see this
> problem regardless whether I'm starting the GUI or not (also, the
> built in vim also exhibits this behavior for me).
>
> Maybe you could bring this up on vim_use -- somebody there should be
> able to help out.  (I don't see how this issue could be specific to
> MacVim since I haven't touched any of the code that changes the order
> that scripts are loaded.)
>
> Björn
>
> --
> You received this message from the "vim_mac" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>

-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to