For example, I have some HTML <p> with several sentences and want to extract the content and put each sentence in its own line. I want this for all paragraphs in one command run.
So from:
<p>Hello. This is Alan. I am a wookie.</p>
<p>Hello. This is Bob. I am an ewok.</p>
I want to get:
Hello.
This is Alan.
I am a wookie.
Hello.
This is Bob.
I am a ewok.
I can extract all <p> contents by running :g/<p>/norm ditVp.
I can also place my cursor in such extracted paragraph and run :s/\.\s\?/.\r/g to split them all. How can I merge this in one command?