• namingthingsiseasy@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    I use json.tool a lot to format JSON directly in vim. Simply highlight the text you want to format and run :!python3 -m json.tool. There are probably plugins to do this too, but doing it this way is probably the simplest, unless vim has a built-in for it.