Created
June 24, 2019 13:29
-
-
Save slode/69dbc9afab5bc6f02ef41f53c03bc334 to your computer and use it in GitHub Desktop.
Use vim to replace uuids in file with new uuids.
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
""" Will replace all 36 character uuids in a file. | |
noremap <leader>uu :%s/[-[:xdigit:]]\{36}/\=substitute(system('uuidgen'), "\n", "", "")/<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment