💾 Archived View for g.codelearn.me › 2018-12-19-vim-format-json.gmi captured on 2023-06-16 at 16:18:39. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

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