2008年1月30日 星期三

VIM PHP autocomplete


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 the tag, write mysql_c and press Ctrl-x Ctrl-o , and here is what happens

太神奇了 

2 則留言:

  1. Thank You! Really helpful to a Vim newbie

    版主回覆:(03/07/2011 04:01:26 PM)


    My pleasure.

    回覆刪除
  2. Wicked thanks. I am just now starting to use plugins for VIM.
    Nerdtree is first. :) ~thank you

    版主回覆:(03/07/2011 04:01:26 PM)



    回覆刪除