Ⅰ. 插件描述
Vim plugin to use CSS prefixr (forked from kien's version)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用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,:Prefixer1or:Prefixer2. - Without selecting anything, in normal mode type
:Prefixer:Prefixer1aor:Prefixer2ato process entire file; or:Prefixer1to process current line. - When using
:Prefixeror:Prefixer2in visual mode you must select entire code blocks i.e. from{to}. - If you have repeat.vim installed, you can use
.to repeat lastPrefixerPrefixer1Prefixer1aorPrefixer2Prefixer2acommand.
: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.