Created
March 20, 2017 09:35
-
-
Save goude/b44b9d3938d3d30d8873f34fe2f92057 to your computer and use it in GitHub Desktop.
Generate and insert a UUID in vim
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
:r !uuidgen|sed 's/.*/"uid": "&",/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just made an addition to change it to lowercase 😬
:r !uuidgen|sed "s/.*/'&',/"|tr "[A-Z]" "[a-z]"