rbenv-ctags


Ⅰ. 插件描述

Automatically generate ctags for rbenv Ruby stdlibs

Ⅱ. 基本信息

创建日期:  2013-02-24
使用用户:  14
Github星:  141
插件作者:  Tim Pope

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tpope/rbenv-ctags'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tpope/rbenv-ctags'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tpope/rbenv-ctags'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tpope/rbenv-ctags

Ⅳ. 文档说明

# Automatically generate ctags for rbenv Ruby stdlibs

I've got tags for my code base. I've got [tags for my
gems][gem-ctags]. All I'm missing is tags for Ruby stdlib. Until now.

Installation

mkdir -p ~/.rbenv/plugins
git clone git://github.com/tpope/rbenv-ctags.git \
  ~/.rbenv/plugins/rbenv-ctags
rbenv ctags

You'll also need [Exuberant Ctags][]. With Homebrew, brew install ctags.
It is imperative that you make sure the correct ctags binary comes first in
your $PATH. Check ctags --version to verify.

Usage

Run rbenv ctags <version> to index the given version. If you are using
[ruby-build][] as an rbenv plugin, this will happen automatically on install.

You need to configure your editor to look for tags files in the Ruby
$LOAD_PATH. If you're using Vim, reasonably recent versions of [vim-ruby][]
(and optionally [rbenv.vim][]) take care of that for you.

You might also want to use [rbenv-default-gems][] to automatically install
[gem-ctags][]. Put it at the top of ~/.rbenv/default-gems so that it
indexes all gems underneath it.

添加新评论