Use Replace command, set option “use regular expressions”, set the regex to ^$\n, set the text to replace with to an empty string.

Use ^:b*$\n to replace also lines containing only white spaces.

Thanks to Michael Freidgeim and “Kenneth” (Doe 🙂

Advertisements