bundler.vim


Ⅰ. 插件描述

bundler.vim: Lightweight support for Ruby's Bundler

Ⅱ. 基本信息

创建日期:  2011-08-21
使用用户:  2275
Github星:  344
插件作者:  Tim Pope

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# bundler.vim

This is a lightweight bag of Vim goodies for
Bundler, best accompanied by
rake.vim and/or
rails.vim. Features:

  • :Bundle, which wraps bundle.
  • An internalized version of bundle open: :Bopen (and :Bsplit,
    :Btabedit, etc.).
  • 'path' and 'tags' are automatically altered to include all gems
    from your bundle. (Generate those tags with

gem-ctags!)

  • Highlight Bundler keywords in Gemfile.
  • Support for gf in Gemfile.lock, plus syntax highlighting that
    distinguishes between installed and missing gems.
  • Support for projectionist.vim,
    including projections based on which gems are bundled.

Installation

If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/tpope/vim-bundler.git

Once help tags have been generated, you can view the manual with
:help bundler.

FAQ

I installed the plugin and started Vim. Why don't any of the commands
exist?

This plugin cares about the current file, not the current working

  1. Edit a file that's covered by a Gemfile.

I opened a new tab. Why don't any of the commands exist?

This plugin cares about the current file, not the current working

  1. Edit a file that's covered by a Gemfile.

Self-Promotion

Like bundler.vim? Follow the repository on
GitHub and vote for it on
vim.org. And if
you're feeling especially charitable, follow tpope on
Twitter and
GitHub.

License

Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
See :help license.

添加新评论