C'è un testoCome eliminare tutte le linee che corrispondono a un modello e una linea dopo in Vim?
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
Come cancellare ogni coppia di linee corrispondenti alla prima linea, per esempio 'Questa riga contiene una parola ...' e la linea dopo quella. Risultato sarebbe:
Title of the text
Loren ipsum dolorem...
The end of the article
Un'altra variante se si desidera eliminare la riga e la linea corrispondenti prima di essa, quindi utilizzare::: g/pattern/-1n, .d' – Dmytro