Thursday, May 3, 2012

Re: No ~/.vim/after/syntax/php.vim

On Thursday, May 3, 2012 2:15:57 PM UTC-5, dotancohen wrote:
> > the first obvious question is:  does vim recognize the filetype
> > of whatever you are editing as 'php'?
> >
>
> I can confirm that the file is named someFile.php and that other PHP
> code in the file is in fact highlighted. For instance, "someVar" is
> not highlighted whereas "$someVar" is highlighted. Likewise, strblah()
> is not highlighted whereas strlen() is highlighted. So it looks like
> PHP-specific highlighting to me.
>

It shouldn't, without a syntax/php.vim file somewhere. As noted, this file is only sourced as-needed; is the output of the :scriptnames command you gave from a Vim with the php file loaded and syntax highlighting on as you describe? In that Vim, what does this command say?

:verbose set syntax? filetype?

And what is the value of b:current_syntax?

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

No comments: