Created
August 29, 2012 07:56
-
-
Save ptitfred/3508224 to your computer and use it in GitHub Desktop.
Pretty format your JSON 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
function! PrettyJSON() | |
silent %!python -mjson.tool | sed -e 's/\s*$//' | |
endfunction | |
command! Fjson call PrettyJSON() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment