operator-sort is a Vim plugin to provide operators to sort the text. You can choose alphabetical order or numerical order as a sort order.
- Vim 8.0 or later
- operator-user 0.1.0 or later
The plugin does not provide any default key mappings. You have to configure key mappings like the following:
" With "!" the order is reversed.
map <Leader>s <Plug>(operator-sort)
map <Leader>S <Plug>(operator-sort!)
map <Leader>n <Plug>(operator-sort-numeric)
map <Leader>N <Plug>(operator-sort-numeric!)
You can access the documentation from within Vim using :help operator-sort
.