Closed christoomey closed 7 years ago
:+1:
Very initial spike here: https://github.com/christoomey/vim-sort-motion
/cc @gabebw
I've been using https://github.com/christoomey/vim-sort-motion - great work. I use gsip
quite often. 👍
Thanks @fpereira1, glad you're enjoying it! I had forgotten about this issue here. Feeling pretty good about where sort-motion is at so I'll close this now. Hooray incremental workflow improvements!
Create a plugin that sorts lines based on a motion. Map to
gs
or<leader>so
by defualt:gs2j
=> sort this down 2 linesgsap
=> sort paragraphgsii
=> sort lines at this indentation (requires text-obj-indent) (Useful forGemfile
groups)