Ⅰ. 插件描述
An enhanced ctags compatible index generator written in pure PHP. Released under GPLv2 license.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vim-php/phpctags'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vim-php/phpctags'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vim-php/phpctags'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-php/phpctags
Ⅳ. 文档说明
phpctags
An enhanced php ctags index file generator
compatible with http://ctags.sourceforge.net/FORMAT.
Using PHP_Parser as PHP syntax parsing
backend, written in pure PHP. The generated ctags index file contains scope
and access information about class's methods and properties.
This tool was originally developed to enhance the PHP syntax outline surport
for vim tagbar plugin. The enhanced
functionality has been included into an addon plugin for tagbar as
tagbar-phpctags.
Enjoy!
Installation
Download
curl -Ss http://vim-php.com/phpctags/install/phpctags.phar > phpctags
php ./phpctagsBuild
We currently only support building PHAR executable for *nix like platform
which providesmakeutility. If you are interested in building an executable
for other platform, especially for Windows, please help yourself out. It
should be easy though (Apologize for not being able to provide any help for
this, I am really not a Windows guy), it also would be great if someone could
provide a patch for this.
Installation is simple, make sure you have PHP's PHAR extension enabled, then
just run make in the root directory of the source, you will get a phpctags
PHAR executable, add it to your $PATH, then you can invoke phpctags
directly from anywhere.
See phpctags on packagist
for more details.
Requirements
- PHP CLI 5.3+
- PHP-Parser
Acknowledgements
- Snapi for composer support.
- DeMarko for memory limit support.
- Sander Marechal for improve console support
- Mark Wu for building a stand-alone PHAR executable