Skip to content

Behavior of :sort /pattern/ inverted #252

@frdr

Description

@frdr

The behavior of the :sort /pattern/ command is inverted with regards to Vim's own implementation. Vim will skip the pattern while codemirror-vim will sort according to the pattern.

Vim documents its behavior in :help :sort:

Take, e.g. the following buffer:

bb
ac
ca

With Vim's :%sort /./ (to skip the first character), the resulting sorting will be (correctly):

ca
bb
ac

While codemirror-vim will sort (incorrectly) by the first character:

ac
bb
ca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions