小编klo*_*kop的帖子

在 Vim 中“按段落”对文件进行排序

给定一个看起来像这样的文件:

Crab
  some text that doesn't need sorting.
  more textual descriptination
Albatross
  some text or other
  perhaps a list that needs no sorting:
    1. a
    2. bee
Dolphin
Pterodactyl
  long story about this particular animal.
Run Code Online (Sandbox Code Playgroud)

我如何告诉 Vim(第 7 版)按动物名称的字母顺序对这个文件进行排序?不可能的?否则如何对这个文件进行排序?

vim

2
推荐指数
1
解决办法
950
查看次数

标签 统计

vim ×1