How can I substitute all except the last asterisk in groups of two or more asterisks with two spaces? E.g.
* Micro topic 1
** Microbes are small
** You can't see them!
*** Isn't that something?
Becomes
* Micro topic 1
* Microbes are small
* You can't see them!
* Isn't that something?
Is there a way to modify of /^\*\{2,}
to match all but the last asterisk in the group and then perform the substitution?
Or :g/^\*\{2,}/s/\*/
with a range, so that it will subsitute each asterisk with two spaces, while leaving the last asterisk? E.g. ***
becomes *
(four spaces and an asterisk)
I tried :g/^\*\{2,}/s/\*\+/
to replace the asterisks with spaces, but it doesn't replace the asterisks individually.