« Back to Index

Vim: pretty print json

View original Gist on GitHub

Tags: #vim #json #pretty #print

vim pretty print json.viml

" Replace buffer with output
:%!python -m json.tool

" Append output to buffer
:read !cat % | python -m json.tool