VIM PHP autocomplete
Lets add PHP autocomplete feature. In your $HOME/.vimrc
file add the following command
太神奇了
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
Once done, Open any PHP file and within thetag, write
mysql_c
and pressCtrl-x Ctrl-o
, and here is what happens