I'm editing a paragraph in a existing HTML file remotely, and it has proper indentation (by Emacs'
html-mode standards) and hard line breaks where lines would exceed 80 chars or so. Like this:
<body> <p> Aaaaaaaaaaaaaa bbbbbbbbbbbbbb cccccccccccccccccccccccccccccccc dd eeeeeeeeeeeee ffffffffffffff gggggggggggggggggggggggggggggggg eee <p> </body>
I need to rewrite, say, half of the text in the paragraph, which keeping the style intact. In Emacs, I can edit the text without worrying about indentation and linebreaks, and then press one key combination, M-q, that would call
fill-paragraph and put line breaks and indentation in proper places (or I can use this key combination during editing, if I'm feeling extra tidy).
Is there a way to do something similar in Vim?