prefixer


Ⅰ. 插件描述

Vim plugin to use CSS prefixr (forked from kien's version)

Ⅱ. 基本信息

创建日期:  2012-04-04
使用用户:  1
Github星:  5
插件作者:  bae22

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Requires Vim 7.3+ and cURL.

For Windows users without cURL, download the binaries from curl.haxx.se and put it in your system's PATH or in the same directory as gvim.exe.

Usage

  • Select some CSS code in visual mode then type either :Prefixer, :Prefixer1 or :Prefixer2.
  • Without selecting anything, in normal mode type :Prefixer :Prefixer1a or :Prefixer2a to process entire file; or :Prefixer1 to process current line.
  • When using :Prefixer or :Prefixer2 in visual mode you must select entire code blocks i.e. from { to }.
  • If you have repeat.vim installed, you can use . to repeat last Prefixer Prefixer1 Prefixer1a or Prefixer2 Prefixer2a command.

:Prefixer uses Prefixer.
:Prefixer1 and :Prefixer1a use Prefixr.
:Prefixer2 and :Prefixer2a use PrefixMyCSS.

Related plugins:

  • prefixer.vim » Add vendor prefixes to CSS3 properties.
  • html_emogrifier.vim » Convert HTML page with linked CSS to HTML email with inline CSS.
  • cssbaseline.vim » Build a CSS baseline (empty code blocks) from HTML code.

添加新评论