If you use MacVim
http://code.google.com/p/macvim/ and want to use the
syntax file for Objective-J will need to download the source, edit
three file and then build the app.
The easiest way to get the source is to check out the latest code from
git, see here
http://code.google.com/p/macvim/wiki/Building
then before continuing with the build get and save the objj.vim file.
go to
http://cappuccino.org/files/objj.vim and save it in /vim7/
runtime/syntax as objj.vim
now the editing
open /vim7/runtime/filetype.vim and add these lines
" Objective j
au BufNewFile,BufRead *.j setf objj
i put them before ocaml and it is just a copy/paste and edit
then open /vim7/runtime/makemenu.vim and add this line
SynMenu Me-NO.Objective\ J:objj
this is the menu as it appears in MacVim so you need to place it in
the correct order
mine appears like this
SynMenu Me-NO.Objective\ C++:objcpp
SynMenu Me-NO.Objective\ J:objj
SynMenu Me-NO.OCAML:ocaml
and finally for the editing
open /vim7/runtime/synmenu.vim and add this line
an 50.70.470 &Syntax.Me-NO.Objective\ J :cal SetSyn("objj")<CR>
again in sequence so it appears in the menu
mine looks like
an 50.70.470 &Syntax.Me-NO.Objective\ C++ :cal SetSyn("objcpp")<CR>
an 50.70.470 &Syntax.Me-NO.Objective\ J :cal SetSyn("objj")<CR>
an 50.70.480 &Syntax.Me-NO.OCAML :cal SetSyn("ocaml")<CR>
with all this done then continue with the build instructions to have
MacVim using the Objective-J syntax and highlighting
h above was done on a MacBook with the latest release of Leopard and
the latest version of xcode, the iPhone release.