Learn Vim (@learnvim) 's Twitter Profile
Learn Vim

@learnvim

Vim tips + tricks
Want to support this page AND learn Vim?
Check out
leanpub.com/gourmetvim
OR
leanpub.com/learnvim

Owned by @iggredible

ID: 1199174884422799360

calendar_today26-11-2019 03:57:42

1,1K Tweet

11,11K Followers

18 Following

Learn Vim (@learnvim) 's Twitter Profile Photo

If you have the jq command github.com/jqlang/jq installed, you can use it to format JSON in Vim! On the line where you have a large JSON object: { "foo": { "bar": { "foo_id": null, "bar_id": 98765, "baz_id": 12345 } } } Run: :.!jq . Vim bang operator/cmd: :h ! #vim

If you have the jq command github.com/jqlang/jq installed, you can use it to format JSON in Vim!

On the line where you have a large JSON object:
{ "foo": { "bar": { "foo_id": null, "bar_id": 98765, "baz_id": 12345 } } }

Run:
:.!jq .

Vim bang operator/cmd: :h !

#vim