/vim-operator-sort

Operators to sort the text

Primary LanguageVim ScriptMIT LicenseMIT

operator-sort

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.

Requirements

Usage

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!)

Documentation

You can access the documentation from within Vim using :help operator-sort.