Joined July 2013
·

Farhan Ahmad

Vonlay
·
Madison, WI
·
·

Posted to Format JSON in vim over 1 year ago

Thanks! I defined a custom function my vimrc so I don't have to remember the command :) Here is what you have to add to your vimrc file.

function! FormatJSON()
:%!python -m json.tool
endfunction

Achievements
9 Karma
0 Total ProTip Views