Last active
August 29, 2015 14:16
-
-
Save 38elements/07f948c5ca3d79e5b442 to your computer and use it in GitHub Desktop.
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
:%s/\s*\d\+$//gc | |
:'<,'>s/\(\w*\):/"\1":/g | |
:'<,'>s/\([[:alpha:]_]\+\):/"\1":/gc | |
:%s/\[\(\d*\)\]/.\1/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment