This blog has migrated to blog.bekenev.net.
New posts will not be published here and will appear on the new site instead.

Vim Json

Vim, format JSON file

I have to note it, it’s just brilliant!

If you want to format a JSON file opened in Vim then just run

: %!python -m json.tool

Stolen from this awesome post - Format JSON in Vim using Python’s json.tool module