Joined July 2012
·

Patrick Oscity

OnCommerce
·
Weimar
·
·

Posted to Format JSON in vim over 1 year ago

Even simpler:

com! FormatJSON %!python -m json.tool

Usage:

:FormatJSON

@annavester freeze will indeed lock the object, making it immutable. This means that it cannot be changed any more. You can't unfreeze an object once it's frozen, because that would mean modifying the object from an immutable to a mutable state. Accordingly, there's no unfreeze method. More information can be found here: http://rubylearning.com/satishtalim/mutable_and_immutable_objects.html

Achievements
93 Karma
0 Total ProTip Views