vim-concentric-sort-motion


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2018-02-22
使用用户:  1
Github星:  2
插件作者:  André Ligné

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/bzf/vim-concentric-sort-motion

Ⅳ. 文档说明

concentric-sort-motion.vim

CircleCI

Adds a motion for sorting CSS attributes using the concentric style guide.

Installation

Using vim-plug:

Plug 'bzf/vim-concentric-sort-motion'

then run :PlugInstall from inside vim.

_NOTE: This plugin requires that vim has been compiled with the +ruby feature

  1. For neovim it requires the Ruby gem neovim to be installed._

Usage

This plugin adds the motion to gsc in normal mode.

Examples:

  • gscj => Sorts the current line and the one below it concentricly.
  • gscip => Sorts the current paragraph concentricly.
  • gscii => Sorts the current indentation level concentricly (requires [text-obj-indent plugin][])

Testing

The tests are written using RSpec. First install the dependencies for running
the tests:

bundle install

To run the tests execute:

bundle exec rspec

添加新评论