Last active
December 14, 2015 15:48
-
-
Save HomenSimpsor/5110399 to your computer and use it in GitHub Desktop.
Act on lines that aren't surrounded by punctuation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s`\v(^\s+)@<=([a-z])@=`<p>` " put <p> at the beginning of every line that starts with a-z | |
:%s`\v[a-z]@<=$`</p>` " put a </p> on the end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment