Created
January 23, 2015 21:41
-
-
Save kdimatteo/fc2cb3d7726de60ff8f3 to your computer and use it in GitHub Desktop.
Convert {{#each foo in foos}} to {{#each foos as |foo|}} with this one weird Vim/sed trick:
This file contains 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/#each\s\v\zs(<\w*>)\sin\s(<(\w|.)*)>/\2 as |\1|/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment