I'm able to find empty lines with
/^$, but when I go to remove them using
:%s/^$//, nothing seems to happen. Yet, some form of substitution is being made, because the status line reads
XX substitutions on XX lines where
XX is the number of empty lines in the file.
- What substitutions are being made, as indicated by the status line?
- How do I accomplish what I want to do (eliminate empty lines from a file)?