I was create .dict file of wordpress functions for automatic word completion in vim.
wordpress .dict file for automatic word completion in vim — Gist
This file created by command below.
find . -name "*.php" -exec egrep '^function ' {} \;\ | sed -e "s/function \(.*\)(.*/\1/g"\ | sed -e "s/^&//g"\ | sort |uniq
class names and class methods are not imported, but it will very handy for vim user.
How to Setup
- Download .dict file from gist.
- Copy file into directory your choice.
- Add row to .vimrc like below.
autocmd FileType php :set dictionary=~/path/to/wordpress.dict
Please enjoy!