Ⅰ. 插件描述
Vim plugin for convert HTML(erb) to SlimⅡ. 基本信息
|
Ⅲ. 安装方法
使用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.

Warning!
This plugin use html2slim gem.
Installation
First - install html2slim gem:
gem install html2slim
git clone https://github.com/davydovanton/vim-html2slim.git ~/.vim/bundle/vim-html2slim
- Add
Bundle 'davydovanton/vim-html2slim'to .vimrc - Run
:BundleInstall
- Add
- Add
NeoBundle 'davydovanton/vim-html2slim'to .vimrc - Run
:NeoBundleInstall
- Add
- Add
Plug 'davydovanton/vim-html2slim'to .vimrc - Run
:PlugInstall
- Add
Usage

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.