I work a lot with nested data structures, and many times I have to manually analyze them from the console. The problem is that they come printed all in one line.
Is there an easy way of re-structuring the display of a data structure based on {,[,],}
and the comma, such that it will look like Ruby's pretty_print output?
:%s/\([{,]\)/\1\r/g
ggVG=
:set ft=ruby
wheeeee
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With