如何删除 vi 中与正则表达式匹配的行?

ran*_*m21 4 regex vi

我有一个大文本文件,其中包含我试图删除的以下标题。例如:

1 Nephi 2:13
 13 Neither did they believe that Jerusalem, that great city,
could be destroyed according to the words of the prophets. And
they were like unto the Jews who were at Jerusalem, who sought to
take away the life of my father.
1 Nephi 2:14
 14 And it came to pass that my father did speak unto them in the
valley of Lemuel, with power, being filled with the Spirit, until
their frames did shake before him. And he did confound them,
that they durst not utter against him; wherefore, they did as he
commanded them.
1 Nephi 2:15
 15 And my father dwelt in a tent.
1 Nephi 2:16
Run Code Online (Sandbox Code Playgroud)

我正在尝试删除包含“1 Nephi 2:16”的整行,因此我正在 vi 中寻找与包含书籍和经文参考的整行匹配的正则表达式。

以下是需要匹配的示例书籍和诗句组合的列表

1 Nephi 2:16
Mormon 3:7
Alma 32:27
Words of Mormon 1:3
Run Code Online (Sandbox Code Playgroud)

jco*_*ctx 5

重复混沌的答案:如果您可以确定以冒号分隔的两个数字结尾的行的任何事件都将是标题:

:g/.* [0-9]\+:[0-9]\+$/d
Run Code Online (Sandbox Code Playgroud)