Skip to content

bzf/vim-concentric-sort-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published