g/\%(^\1\n\)\@<=\(.*\)$/d
g/ /d <-- Delete the lines matching the regexp
\@<= <-- If the bit following matches, make sure the bit preceding this symbol directly precedes the match
\(.*\)$ <-- Match the line into subst register 1
\%( \) <-- Group without placing in a subst register.
^\1\n <-- Match subst register 1 followed the new line between the 2 lines
Comments
comments powered by Disqus