How does :g/^$/,/./-j (reduce multiple blank lines to a single blank) work in vim?
- by Mert Nuhoglu
In the article, Vim Regular Expressions, Oleg Raisky gives the following command to reduce multiple blank lines to a single blank:
:g/^$/,/./-j
Can someone please describe how this works?
I know :g command and regular expressions. But I didn't understand what the part /,/./-j does.