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