This question follows from this vim search question
I have a parameter in my .vimrc that excludes $ as the real part of the word:
set iskeyword-=$
This works fine for most files, but doesn't work in PHP. I assume that it is overwritten by the php plugin, but since the plugins are loaded after .vimrc, I cannot decide how to overwrite this parameter. I would rather not print
:set isk-=$
every time I upload a PHP file.
Any suggestions?
(Ubuntu 8.04 / Vim 7.1.138, if that matters)
Summary
Two great answers, thanks!
I went with tomalak because it was less effort and added the following to my ~ / .vimrc
autocmd FileType php setlocal isk-=$
but thanks to Luke Hermit . The settings in the ~ / vim / after / ftplugin / php.vim file also worked.
: help autocmd and: help after-directory also helped
source share