Ⅰ. 插件描述
Adds CSS autoprefixer support to Vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/vim-autoprefixer-who-speaks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/vim-autoprefixer-who-speaks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/vim-autoprefixer-who-speaks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/vim-autoprefixer
Ⅳ. 文档说明
With vim-autoprefixer you can use the power of Autoprefixer (https://github.com/ai/autoprefixer) without leaving vim. Write your CSS and add vendor prefixes automatically using values from Can I Use (http://caniuse.com/). Autoprefixer utilizes the most recent data from Can I Use to add only necessary vendor prefixes. It also removes old, unnecessary prefixes from your CSS.
vim-autoprefixer plugin works in normal and visual vim mode. Select a block of CSS code in visual mode hit F7 and aply prefixes on it, in normal mode the plugin processes the entire file.
Note that vim-autoprefixer interact with the user and promt for Autoprefixer options, if you dont set any option and hit Enter vim-aytoprefixer continue with Autoprefixer default settings.