Jest to tekstJak usunąć wszystkie linie pasujące do wzorca i linii po w 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
Jak usunąć każdą parę linii pasujących pierwszą linię, na przykład "Ta linia zawiera słowo ..." i linię następującą po tym. Wynik byłby:
Title of the text
Loren ipsum dolorem...
The end of the article
Inny wariant, jeśli chcesz usunąć pasującą linię i linię przed nim, a następnie użyj: ': g/pattern/-1n, .d' – Dmytro