Movecollect 包含关键信息的行

一个简单但非常有用的命令:

:g/ending/m$

将包含 ending 的行移动到缓冲区的末尾。

m 表示移动
$ 表示缓冲区结束,而 0 表示缓冲区的开始。