Movecollect 包含關鍵資訊的行

一個簡單但非常有用的命令:

:g/ending/m$

將包含 ending 的行移動到緩衝區的末尾。

m 表示移動
$ 表示緩衝區結束,而 0 表示緩衝區的開始。