tagbar-phpctags


Ⅰ. 插件描述

Using phpctags to generate php ctags index for vim plugin tagbar.

Ⅱ. 基本信息

创建日期:  2012-07-09
使用用户:  155
Github星:  106
插件作者:  Techlive Zheng

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'vim-php/tagbar-phpctags'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'vim-php/tagbar-phpctags'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'vim-php/tagbar-phpctags'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-php/tagbar-phpctags.vim

Ⅳ. 文档说明

tagbar-phpctags

An addon plugin for tagbar using
phpctags to generate php ctags index.

Provide a much better PHP syntax outline support than the orginal ctags. Methods
and properties even local variables assigned in functions are list in their own scope.

Installation

If you are using the distributed archive from vim.org, a phpctags executable
has been included, nothing to do.

If you are using the plain source from the repository, then phpctags needs to
be built first. On *nix platforms, just run make will do. For other
platforms, especially Windows, please help yourself out.

Configuration

Location of phpctags should be in system '$PATH' environment variable.

Or, the location of phpctags can be configured in vimrc as such:

let g:tagbar_phpctags_bin='PATH_TO_phpctags'

The amount of memory that phpctags can use can be configured as such:

let g:tagbar_phpctags_memory_limit = '512M'

The default is 128 megabytes of memory.

Acknowledgements

添加新评论