Hello,

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.

- Dan

-- 
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