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.

example: 忽略大小写,对文件所有行进行排序

:sort i

最新文章

  1. 我常用的VS技巧
  2. JAVA(1)
  3. Spring AOP AspectJ Pointcut Expressions With Examples--转
  4. php练习:每5个商品一排
  5. Python builtins
  6. [转]p2p端口映射工具 dog-tunnel
  7. VMware 命令行下安装以及导入Ubuntu系统
  8. Windows Phone 8.1 与 Windows Phone 8.1 Silverlight区别
  9. Pyhton 一行代码求Fibonacci第N项
  10. POJ 3104 Drying 二分
  11. java学习笔记 (7) —— 实现简单的上传处理
  12. jdbc详解(三)
  13. 如何使用ArcGIS发布LiDAR 点云
  14. 【前端】一步一步使用webpack+react+scss脚手架重构项目
  15. Java 上传下载的
  16. mysql并发控制之MVCC
  17. Qt调用自己编译的libglog.a出现问题
  18. window安装pycharm Django
  19. pychrom 快捷键
  20. Java设计模式 - 单例模式详解(扩展)

热门文章

  1. Push to GitHub:could not resolve host: github.com
  2. 算法刷题笔记-stack-四则运算
  3. Eclipse国内下载升级方法
  4. ArcGis 创建含孔洞面要素AO C#
  5. android html布局界面
  6. spring_AOP的注解开发
  7. Codeforces 745E Hongcow Buys a Deck of Cards 状压DP / 模拟退火
  8. 如何实现sqrt()
  9. mysql 判断指定条件数据存不存在,不存在则插入
  10. Java中如何实现序列化,有什么意义?