Skip to content

Instantly share code, notes, and snippets.

@slode
Created June 24, 2019 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slode/69dbc9afab5bc6f02ef41f53c03bc334 to your computer and use it in GitHub Desktop.
Save slode/69dbc9afab5bc6f02ef41f53c03bc334 to your computer and use it in GitHub Desktop.
Use vim to replace uuids in file with new uuids.
""" 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