To delete all blank lines in a file using Vim (or nvim), you can do this:
:g/^\s*$/d
Read more here.
To delete all blank lines in a file using Vim (or nvim), you can do this:
:g/^\s*$/d
Read more here.
What did you think about this article? Do you have any questions, or is there anything that could be improved? You can leave a comment after clicking on an icon below.