I am currently creating a Vim syntax file for WordPress and have it inside a file called wordpress.vim
All WordPress files are PHP files but not all PHP files are WordPress files.
My wordpress.vim syntax file depends on the php syntax file. So I have included it using the following line
so <sfile>:p:h/php.vim
My question is what is the most elegant way to include all PHP syntax into WordPress syntax and where should I put the the new wordpress.vim file that I have created.
The right location for your syntax file should be:
You should take a look at
$VIMRUNTIME/syntax/cpp.vimfor what I assume is the correct syntax: