这里有一段文字
Title of the text
This line contains a word that is matched by the pattern and it should be deleted.
Next line is supposed to be deleted as well.
Loren ipsum dolorem...
This line contains a word that is matched by the pattern and it should be deleted.
And this one should be deleted
The end of the article
如何删除匹配第一行(例如“This line contains a word…”)和其后一行的每对行。结果应为:
Title of the text
Loren ipsum dolorem...
The end of the article
:g/pattern/-1n,.d
。 - Dmytro