Paul Connolley wrote the following on 18.10.2011 14:34 Hello Paul,
> Hi there, > > I'm having an issue with a syntax plugin > (https://github.com/pangloss/vim-javascript) running 'setlocal iskeyword+=$' > when I edit a PHP file. It doesn't happen when I open any other file type > (eg. .vimrc). > > I was wondering if it was to do with my .vimrc or conflicting plugins so I > created a fresh .vimrc file and .vim directory and installed the plugin and > added the following to my .vimrc: > > https://gist.github.com/1295121 > > It still seems to run setlocal from the syntax/javascript.vim. > > As a test, I did: :set ft=php within my .vimrc and it applied setlocal > iskeyword+=$ as well > > I can't see any reason why a javascript syntax file would be loaded for PHP > files. > > Does anyone have any clues? Have I done something wrong or is it something > that the plugin has done? 'syntax/php.vim' sources 'syntax/html.vim' on lines 75-77. 'syntax/html.vim' includes definitions from 'syntax/javascript.vim' on line 165. The 'syntax/javascript.vim' you mention provides those definitions on lines 247-251 which leads to the effect you observe. HTH, -- bye Thilo 4096R/0xC70B1A8F 721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F -- 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
