Vim PHP omni completion

前端 未结 9 1059
醉话见心
醉话见心 2020-12-07 12:44

I\'m trying to get PHP autocompletion right in Vim. Right now when I do a $blog = new Blog(); $blog-> and then hit CTRL+X CTRL+O I\'d expect omn

9条回答
  •  悲&欢浪女
    2020-12-07 13:12

    In C++, I run the following to get better context sensitivity:

    ctags '--c++-kinds=+p' '--fields=+iaS' '--extra=+q'
    

    It's not perfect, but after ctags adds the extra information to the tags file as specified by the above command vim handles completion better.

提交回复
热议问题