This is an old revision of the document!
Creating PHP function list file
Since new functions could be added to PHP, or old function parameters changed, you may want to create your own function reference list to use with omni-completion in Vim.
- download the multi html documentation file from php.net
- unarchive the file
- inside the html folder, run this:
for i in `ls -1| grep "^function\."`; do grep -A4 Description $i >> funcs; done
- open the 'funcs' file in vim
- run
:g/Description/normal! 5J
- to remove html tags, run
:%s/<[^>]*>//g
incomplete steps!
- remove the 'Description' and return types, run
:%s/^\s*Description\s*[a-zA-Z]*\s*//g
- to create the dictionary, run
:%s/^\([^[:space:]]\+\) \([^[:space:]]\+\) ( \(.*\))/\\ '\2(': '\3| \1',