Sorting words (not lines) in VIM

后端 未结 6 509
长情又很酷
长情又很酷 2020-12-13 02:44

The built-in VIM :sort command sorts lines of text. I want to sort words in a single line, e.g. transform the line

b a d c e f

6条回答
  •  隐瞒了意图╮
    2020-12-13 03:18

    My AdvancedSorters plugin now has a :SortWORDs command that does this (among other sorting-related commands).

提交回复
热议问题