Thursday, May 3, 2012

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

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
scriptencoding utf-8
setlocal nolist
syn match phpPlusEq '+='
hi link phpPlusEq Error
" vim: ts=8 sw=2
$

However, it is not showing in my list of scriptnames:
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim73/debian.vim
3: /usr/share/vim/vim73/syntax/syntax.vim
4: /usr/share/vim/vim73/syntax/synload.vim
5: /usr/share/vim/vim73/syntax/syncolor.vim
6: /usr/share/vim/vim73/filetype.vim
7: /home/dotancohen/.vimrc
8: /home/dotancohen/.vim/keymap/insert-only_capslock.vim
9: /home/dotancohen/.vim/plugin/taglist.vim
10: /usr/share/vim/vim73/plugin/getscriptPlugin.vim
11: /usr/share/vim/vim73/plugin/gzip.vim
12: /usr/share/vim/vim73/plugin/matchparen.vim
13: /usr/share/vim/vim73/plugin/netrwPlugin.vim
14: /usr/share/vim/vim73/plugin/rrhelper.vim
15: /usr/share/vim/vim73/plugin/spellfile.vim
16: /usr/share/vim/vim73/plugin/tarPlugin.vim
17: /usr/share/vim/vim73/plugin/tohtml.vim
18: /usr/share/vim/vim73/plugin/vimballPlugin.vim
19: /usr/share/vim/vim73/plugin/zipPlugin.vim
20: /home/dotancohen/.vim/after/plugin/matchparen.vim
21: /usr/share/vim/vim73/scripts.vim
Press ENTER or type command to continue

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.

Thanks.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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

Post a Comment