vim-html2slim


Ⅰ. 插件描述

Vim plugin for convert HTML(erb) to Slim

Ⅱ. 基本信息

创建日期:  2014-04-30
使用用户:  1
Github星:  6
插件作者:  Anton Davydov

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-HTML2Slim

Vim plugin for convert HTML(erb) to Slim.

Main

Warning!

This plugin use html2slim gem.

Installation

First - install html2slim gem:
gem install html2slim

  • Pathogen

    • git clone https://github.com/davydovanton/vim-html2slim.git ~/.vim/bundle/vim-html2slim
  • Vundle

    1. Add Bundle 'davydovanton/vim-html2slim' to .vimrc
    2. Run :BundleInstall
  • NeoBundle

    1. Add NeoBundle 'davydovanton/vim-html2slim' to .vimrc
    2. Run :NeoBundleInstall
  • vim-plug

    1. Add Plug 'davydovanton/vim-html2slim' to .vimrc
    2. Run :PlugInstall

Usage

Main

Select your HTML or Erb code and call :HTML2slim

Contributing

If you'd like to help improve plugin, clone the project with Git by running:

$ git clone git://github.com/davydovanton/vim-html2slim

Work your magic and then submit a pull request. We love pull requests!

If you find the documentation lacking, help us out and update this README.md. If you don't have the time to work on Slim and use this plugin, but found something we should know about, please submit an issue.

License

Copyright (c) Anton Davydov. Distributed under the same terms as Vim itself.

添加新评论