On Mon, 5 Apr 2010, chardson wrote:
> On Apr 1, 5:10 pm, "Benjamin R. Haskell" wrote:
>
> > On Thu, 1 Apr 2010, chardson wrote:
> >
> > > I'm trying to figure out why there's a discrepancy between syntax
> > > highlighting between my two setups:
> >
> > > · OS 10.6, MacVim 7.2 stable 1.2
> > > · Ubuntu 9.04, Vim 7.2.079
> > > [...]
> >
> > See the recent vim_use thread about Java syntax highlighting:
> >
> > [...]
> >
> > Workaround for that problem would be to explicitly add:
> >
> > let java_allow_cpp_keywords=1
> > (or 0, according to preference)
> >
> > (Though I thought the issue would only affect C++ keywords...
> > Maybe there are other differences in the mispackaged version?)
> >
>
> I've tried setting all of the following evs to 1, but it didn't
> help.
> java_allow_cpp_keywords
> java_highlight_all
> java_highlight_java_lang_ids
You might also try explicitly setting those to 0. Perhaps a system-wide
vimrc is setting them on one platform but not the other? And the old
behavior was to default java_allow_cpp_keywords to 1 unless it was
defined.
> I also diff'd the three syntax/java.vim files from my mac with the one
> on my ubuntu machine, but they are all exactly the same.
> /Applications/Contents/Resources/vim/runtime/syntax/java.vim
> /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/
> java.vim
> /usr/share/vim/vim72/syntax/java.vim
>
> I might try diff'ing all the syntax files and get back to you
Perhaps diffing (the equivalent of) /etc/vim/vimrc between the two
systems would also help.
--
Best,
Ben
--
You received this message from the "vim_use" 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
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment