Skip to content

Instantly share code, notes, and snippets.

@HomenSimpsor
Last active December 14, 2015 15:48
Show Gist options
  • Save HomenSimpsor/5110399 to your computer and use it in GitHub Desktop.
Save HomenSimpsor/5110399 to your computer and use it in GitHub Desktop.
Act on lines that aren't surrounded by punctuation
:%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