问题描述
我在找vim的PHP自动完成的解决方案。我已经在这个线程:
但它不为我工作。
我生成这个bash脚本标签文件:
i'm looking for an php autocomplete solution for vim. I already was at this thread:VIM php omni completionbut it doesn't work for me.I generate the tags file with this bash script:
#!/bin/bash
exec ctags -V -f tags \
-h \".php\" -R \
--exclude=\"\.git\" \
--totals=yes \
--language-force=PHP \
--tag-relative=yes \
--PHP-kinds=+cfiv \
--regex-PHP='/(abstract)?\s+class\s+([^ ]+)/\2/c/' \
--regex-PHP='/(static|abstract|public|protected|private)\s+(final\s+)?function\s+(\&\s+)?([^ (]+)/\4/f/' \
--regex-PHP='/interface\s+([^ ]+)/\1/i/' \
--regex-PHP='/\$([a-zA-Z_][a-zA-Z0-9_]*)/\1/v/' \
kernel/classes/
但效果不理想的自动完成。我甚至不知道是否插件加载。
所以,我怎么可以看到,如果插件加载? (插件位于下包,我用的病原体,和其他插件做的工作。)
有必要激活什么东西?
我已经VIM - 六提高7.3,旺盛Ctags的5.8
but the autocomplete is not as desired. I don't even know if the plugin is loading.so, how can i see if the plugin is loading? (the plugin is located under bundle, i use pathogen, and other plugins do work..)it is necessary to activate something else?i have VIM - Vi IMproved 7.3, Exuberant Ctags 5.8
感谢
推荐答案
如果您的项目是那么作曲家项目,可以签我的插件。对于Symfony2的土地Laravel项目也结帐并插件。
If your projects is a composer project then checkout my phpcomplete-extended plugin. For Symfony2 land Laravel projects also checkout phpcomplete-extended-symfony and phpcomplete-extended-laravel plugins respectively.
这篇关于PHP自动完成用vim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!