HTML Paragraph-ize in Vim
A little vim command to surround lines in
<p> tags. It says to take lines 100 to 150, strip whitespace at the start and end of the line and then add the opening and closing tags.
You should change the line numbers to fit your situation. If you want it to apply to the whole file, replace the
It leaves empty lines or lines with only whitespace alone. It also ignores lines with only one non-whitespace character, which might be considered a bug, but I didn’t have any of those.