vim自带排序函数sort, 在命令行模式下执行:help sort 可查看其具体用法,摘录如下:

Vim has a sorting function and a sorting command. The sorting function can be
found here: sort(), uniq().

:sor :sort
:[range]sor[t][!] [b][f][i][n][o][r][u][x] [/{pattern}/]
Sort lines in [range]. When no range is given all
lines are sorted.

With [!] the order is reversed.

With [i] case is ignored.

Options [n][f][x][o][b] are mutually exclusive.
View Code

相关文章:

  • 2022-01-13
  • 2021-05-28
  • 2022-01-07
  • 2021-10-11
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-06-26
  • 2022-01-28
  • 2022-12-23
  • 2022-01-05
  • 2022-02-01
相关资源
相似解决方案