csscomb-vim


Ⅰ. 插件描述

vim plugin for csscomb

Ⅱ. 基本信息

创建日期:  2011-11-30
使用用户:  1
Github星:  7
插件作者:  Aleksandr Batsuev

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# CSScomb plugin for Vim

About

Plugin based on CSScomb algorithm.

The algorithm of CSScomb simulates web-technologists actions upon working with CSS-code to the limit. Usually to re-order code you move lines over each other considering comments in the code, multilines records of property values, hacks and everything that could be found in the real file. CSScomb reproduces these actions for you. This means that the parser "thinks" as a person editing the text, not as a blind robot parsing CSS.

For more info, online demo and tests see csscomb.com

The Requirements

CSScomb is written in pure PHP, without any external libraries or dependencies.
See details at wiki.

Installation

With Pathogen

cd ~/.vim/bundle
git clone https://github.com/miripiruni/CSScomb-for-Vim.git

With Vundle

Add this to .vimrc:

Bundle 'git://github.com/miripiruni/CSScomb-for-Vim.git'

Manual without plugins manager

git clone https://github.com/miripiruni/CSScomb-for-Vim.git csscomb
cp -r csscomb/plugin/* ~/.vim/plugin/

Usage

Vim command:

:CSScomb

添加新评论