Skip to content

Instantly share code, notes, and snippets.

@franzramadhan
Last active December 1, 2017 10:15
Show Gist options
  • Save franzramadhan/e3d64ae833d3cda2e321a9245cde8b96 to your computer and use it in GitHub Desktop.
Save franzramadhan/e3d64ae833d3cda2e321a9245cde8b96 to your computer and use it in GitHub Desktop.
Regex
The :g// command is what you're looking for — it runs a command on each line matching a pattern:
:g/Thing to find/ s/$/ Stuff to append/
get following string patterns
{{ STRING }}
regex:
\{\{\s([A-Za-z0-9_]*)(\s*\}\})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment