On Thursday, May 3, 2012 3:00:09 PM UTC-5, dotancohen wrote:
> On Thu, May 3, 2012 at 10:34 PM, Ben Fritz <[email protected]> wrote:
> > 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?
> >
> 
> The PHP syntax is probably being sourced from whatever the default is
> in /etc or /usr
> 

But, it ISN'T being sourced. If php syntax is on, then you should see a 
syntax/php.vim file in your :scriptnames output, which you do not.

> >  :verbose set syntax? filetype?
> >
> 
>   syntax=php
>         Last set from /usr/share/vim/vim73/syntax/syntax.vim
>   filetype=php
>         Last set from /usr/share/vim/vim73/filetype.vim
> 
> 

Ok, so you have a correctly set filetype and syntax. But somehow syntax/php.vim 
never got sourced. What does ":verbose set runtimepath?" say? Is your expected 
after directory on that path? Also, is there a directory on that path which 
includes a syntax directory which also includes a php.vim file? I'm baffled how 
you have php syntax highlighting if no php syntax definitions have been loaded. 
Try using this to see what highlight group is under the cursor:

http://vim.wikia.com/wiki/Identify_the_syntax_highlighting_group_used_at_the_cursor

and then use :verbose hi NameOfHighlightGroupUnderCursor to see where it was 
set.

> > And what is the value of b:current_syntax?
> >
> 
> I'm not sure what you mean by that. What command exactly should I be running?
> 

As suggested by somebody else, either of these will work:

:echo b:current_syntax
:let 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

Reply via email to