Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.05 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.05 KB

concentric-sort-motion.vim

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 enabled. 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