Adds a motion for sorting CSS attributes using the concentric style guide.
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.
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)
The tests are written using RSpec. First install the dependencies for running the tests:
bundle install
To run the tests execute:
bundle exec rspec