【问题标题】:Vim completion + php namespaceVim 补全 + php 命名空间
【发布时间】:2011-12-19 17:17:29
【问题描述】:

如何为 php 配置 vim 完成命名空间。我使用带有全功能完成的插件indexer。命名空间不是补充。索引器的设置:

let g:indexer_disableCtagsWarning=1
let g:indexer_lookForProjectDir=0
let g:indexer_ctagsJustAppendTagsAtFileSave=1
let g:indexer_indexerListFilename=$VIMDIR."/indexer_files"
let g:indexer_tagsDirname=$VIMDIR."/tags"
let g:indexer_ctagsCommandLineOptions="-h '.php' -R --totals=yes --tag-relative=yes --PHP-kinds=+cf --regex-PHP='/abstract class ([^ ]*)/\1/c/' --regex-PHP='/interface ([^ ]*)/\1/c/' --regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/' --exclude='*cache*'"

【问题讨论】:

    标签: php vim autocomplete namespaces


    【解决方案1】:

    我不确定我是否完全理解了你的问题,但如果你想要的是 php 代码自动完成,phpautocomplete.vim 可能会对你有所帮助。

    【讨论】:

      猜你喜欢
      • 2010-11-16
      • 1970-01-01
      • 2013-11-22
      • 2012-11-07
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多