Skip to content
Discussion options

You must be logged in to vote

helixes :sort command is more general then vims and doesn't operate on lines and instead sorts the selections. For helix multi cursors/selections are a core part of the editing model. You can create on cursors manually with c or use a regex with s to create a selection at each regex match within the current selection. You can split an existing selection at line boundaries with A-s. Then using :sort afterward matches vims sort command but you can also sort words for example: s\w+<ret>:sort<ret> selects and then sorts all words in the selections.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devinschulz
Comment options

@jnns
Comment options

Answer selected by devinschulz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6840 on April 21, 2023 15:17.