On Thu, 3 May 2012, Dotan Cohen wrote:
I am trying to get the "=+" operator highlighted as an error in PHP
files. I have this file:
$ cat /home/dotancohen/.vim/after/syntax/php.vim
[...]
However, it is not showing in my list of scriptnames:
[...]
12: /usr/share/vim/vim73/plugin/matchparen.vim
[...]
20: /home/dotancohen/.vim/after/plugin/matchparen.vim
[...]
Why might that be? This is on Kubuntu 11.10, KDE 4.7 with VIM 7.3. My
~/.vim/after/plugin/matchparen.vim file works as expected, so it seems
that the "after" files are supported.
Your ~/.vim/after/plugin/matchparen.vim was run after the
plugin/matchparen.vim from $VIMRUNTIME. (Plugins are loaded when Vim is
starting up.)
Similarly, your ~/.vim/after/syntax/php.vim will be run after the
syntax/php.vim from $VIMRUNTIME. (Syntax files are loaded as-needed.)
So, it won't show up in :scriptnames until you open a PHP file.
--
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