vim-refills


Ⅰ. 插件描述

:cocktail: Use thoughtbot's refill gem within vim.

Ⅱ. 基本信息

创建日期:  2016-01-06
使用用户:  0
Github星:  2
插件作者:  Michael Anhari

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-refills

This is a vim plugin for adding vim commands to utilize
thoughtbot's refills gem.

For example, if you want to generate the hero refill you would run
the following command in vim: :RefillHero

This will run the following command in your shell:

rails generate refills:import hero

Help documentation

The help file (accessed via :help vim-refills) now contains anchor links to
each refill. Navigate to them in your browser via placing your cursos on the
link and typing gx.

Using refills after they have been generated

If you deleted stylesheet sprocket directives you will have to either
require the entire refills directory:

@import 'refills/*'

or list each component one by one:

@import 'refills/hero'

You can now use the refill as a partial.

<%= render "refills/hero" %>

添加新评论