omnicomplete - vim php omnicompletion not showing classes -
i tried setting omnicompletion in vim yii project. this, go yii/framework folder , create ctags file ctags-exuberant -f yii.tags --languages=php -r
in .vimrc, added yii.tags file :set tags=~/public_html/yii/framework/yii.tags
on opening tags file shows classes.
however, when open file , hit c-x, c-o
, dropdown list contains functions , variables. couldn't find similar problem on search. missing?
according :help ft-php-omni
, default omnicomplete script php (the 1 part of standard vim distribution) completes class names after new
keyword. work?
if want method completion restricted correct class, may have add hints in comments. docs include example
/* @var $myvar myclass */ $myvar->
Comments
Post a Comment