Last active
December 26, 2015 13:59
-
-
Save rgbkrk/7161722 to your computer and use it in GitHub Desktop.
vim madness
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
" Search and replace simple anonymous js function that returns to coffeescript | |
%s/function(\([^)]*\))\s*{\s*return\s*\([^}]*\);\s*}/(\1) -> ( \2 )/cg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment