On Thursday, May 3, 2012 12:37:19 PM UTC-5, dotancohen 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 > 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 > >
I also do not see a syntax/php.vim or a ftplugin/php.vim in the list anywhere. It looks like you either don't have filetype detection turned on, you don't have syntax highlighting turned on, you aren't editing a file of type php, or you are editing such a file but Vim's filetype detection mechanisms did not realize it. -- 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
