Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Requires 'jq' (brew install jq)
- function! s:PrettyJSON()
- %!jq .
- set filetype=json
- endfunction
- command! PrettyJSON :call <sid>PrettyJSON()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement